public function QueueInterface::run

8.0.x QueueInterface.php public QueueInterface::run($name, $time_limit = 0)
7.x QueueInterface.php public QueueInterface::run($name, $time_limit = 0)
master QueueInterface.php public QueueInterface::run($name, $time_limit = 0)

Runs a given queue.

Parameters

string $name: The name of the queue to run.

int $time_limit: The maximum number of seconds that the queue can run. By default the queue will be run as long as possible.

Return value

int The number of items successfully processed from the queue.

2 methods override QueueInterface::run()
Queue7::run in lib/Drush/Queue/Queue7.php
Runs a given queue.
Queue8::run in lib/Drush/Queue/Queue8.php
Runs a given queue.

File

lib/Drush/Queue/QueueInterface.php, line 27

Namespace

Drush\Queue

Class

QueueInterface
Defines an interface for interacting with queues.

Code

public function run($name, $time_limit = 0);