1 system.queue.inc public SystemQueue::releaseItem($item)

Release an item that the worker could not process, so another worker can come in and process it before the timeout expires.

Parameters

$item:

Return value

boolean:

Overrides BackdropQueueInterface::releaseItem

File

core/modules/system/system.queue.inc, line 259
Queue functionality.

Class

SystemQueue
Default queue implementation.

Code

public function releaseItem($item) {
  $update = db_update('queue')
    ->fields(array(
      'expire' => 0,
    ))
    ->condition('item_id', $item->item_id);
  return $update->execute();
}