hook_queue_info_alter(&$queues)
Alter cron queue information before cron runs.
Called by \Drupal\Core\Cron to allow modules to alter cron queue settings before any jobs are processesed.
Parameters
array $queues: An array of cron queue information.
See also
\Drupal\Core\QueueWorker\QueueWorkerInterface
\Drupal\Core\Annotation\QueueWorker
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/core.api.php, line 1955
- Documentation landing page and topics, plus core library hooks.
Code
1 2 3 4 5 | function hook_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' ][ 'cron' ][ 'time' ] = 90; } |
Please login to continue.