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.
array $queues: An array of cron queue information.
\Drupal\Core\QueueWorker\QueueWorkerInterface
\Drupal\Core\Annotation\QueueWorker
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!core.api.php/function/hook_queue_info_alter/8.1.x