function drush_queue_run_validate

8.0.x queue.drush.inc drush_queue_run_validate($queue_name)
6.x queue.drush.inc drush_queue_run_validate($queue_name)
7.x queue.drush.inc drush_queue_run_validate($queue_name)
5.x queue.drush.inc drush_queue_run_validate($queue_name)
master queue.drush.inc drush_queue_run_validate($queue_name)

Validation callback for drush queue-run.

File

commands/core/queue.drush.inc, line 53

Code

function drush_queue_run_validate($queue_name) {
  try {
    $queue = drush_queue_get_class();
    $queue->getInfo($queue_name);
  }
  catch (\Drush\Queue\QueueException $exception) {
    return drush_set_error('DRUSH_QUEUE_RUN_VALIDATION_ERROR', $exception->getMessage());
  }
}