1 system.api.php hook_cron_queue_info_alter(&$queues)

Alter cron queue information before cron runs.

Called by backdrop_cron_run() to allow modules to alter cron queue settings before any jobs are processed.

Parameters

array $queues: An array of cron queue information.

See also

hook_cron_queue_info()

backdrop_cron_run()

Related topics

File

core/modules/system/system.api.php, line 174
Hooks provided by Backdrop core and the System module.

Code

function hook_cron_queue_info_alter(&$queues) {
  // This site has many feeds so let's spend 90 seconds on each cron run
  // updating feeds instead of the default 60.
  $queues['aggregator_feeds']['time'] = 90;
}