You are here

function hook_mob_queue_cron_queue_info_alter in Drush Queue Handling 8

Same name and namespace in other branches
  1. 7 mob_queue.api.php \hook_mob_queue_cron_queue_info_alter()

Alter cron queue information before mob-queue runs.

Called by mob-queue to allow modules to alter cron queue settings before any jobs are processesed. It works the same as hook_cron_queue_info() but this hook applies only to mob-queue, in case you want to alter queues only under mob-queue execution.

Parameters

array $queue: An array of cron queue information.

See also

hook_cron_queue_info_alter()

2 invocations of hook_mob_queue_cron_queue_info_alter()
drush_mob_queue_mob_exe_queue in ./mob_queue.drush.inc
Run the queued job.
MobQueueCommands::exeQueue in src/Commands/MobQueueCommands.php
Execute mob_queue queued tasks.

File

./mob_queue.api.php, line 27
Hooks provided by the Drush Queue Handling module.

Code

function hook_mob_queue_cron_queue_info_alter(&$queues) {

  // Remove this queue from mob-queue's queue list at all.
  unset($queues['myqueue']);
}