You are here

public function MemoryQueue::releaseItemMultiple in Purge 8.3

Release multiple items that the worker could not process.

Another worker can come in and process these before the timeout expires.

Parameters

array $items: Non-associative array with item objects as returned by claimItemMultiple() or \Drupal\Core\Queue\QueueInterface::claimItem().

Return value

array Empty array upon full success, else the remaining items that failed.

Overrides QueueBase::releaseItemMultiple

File

src/Plugin/Purge/Queue/MemoryQueue.php, line 160

Class

MemoryQueue
A QueueInterface compliant volatile memory buffer queue.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function releaseItemMultiple(array $items) {
  $this
    ->bufferInitialize();
  foreach ($items as $item) {
    $this
      ->releaseItem($item);
  }
  return [];
}