function advancedqueue_drush_command in Advanced Queue 7
Implements hook_drush_command().
File
- drush/
advancedqueue.drush.inc, line 11 - Drush worker for Advanced-queue.
Code
function advancedqueue_drush_command() {
$items = array();
$items['advancedqueue-process-queue'] = array(
'description' => 'Run a processing job for a queue.',
'arguments' => array(
'queues' => dt('The name(s) of the queue(s) to process, either a single name or a comma-separated list.'),
),
'options' => array(
'timeout' => 'The maximum execution time of the script. Be warned that this is a rough estimate as the time is only checked between two items.',
'all' => 'Process all queues.',
'group' => 'Process all queues from the chosen group.',
),
'aliases' => array(
'advancedqueue',
),
);
$items['advancedqueue-list'] = array(
'description' => 'Returns a list of all defined queues',
'options' => array(
'pipe' => 'Return a comma delimited list of queues.',
),
);
return $items;
}