You are here

function drush_queue_ui_queue_process in Queue UI 8.2

Process queue

Parameters

string $queue_name:

File

./queue_ui.drush.inc, line 40

Code

function drush_queue_ui_queue_process($queue_name = NULL) {

  // Require the choice name to be filled
  if ($queue_name = _queue_ui_queue_choice($queue_name)) {

    // Add operations and start to batch process
    _queue_ui_start_batch([
      [
        '\\Drupal\\queue_ui\\QueueUIBatch::step',
        [
          $queue_name,
        ],
      ],
    ]);
  }
}