Skip to main content

Queues

DrevOps\BehatSteps\Steps\Drupal\QueueTrait - Source, Steps

Manage and assert Drupal queue state.

public function queueClear(string $queue): void

Delete every item of a queue

public function queueCountItems(string $queue): int

Count the items in a queue

public function queueGetLeaseTime(): int

Get the lease time for claiming queue items

public function queueGetProcessLimit(): int

Get the maximum number of items to process

public function queueProcess(string $queue, int $limit): int

Process items from a queue with the queue's worker