public function AdvancedQueue::releaseItem in Advanced Queue 7
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 DrupalQueueInterface::releaseItem
File
- ./
advancedqueue.queue.inc, line 130
Class
- AdvancedQueue
- Extended queue.
Code
public function releaseItem($item) {
$update = db_update('advancedqueue')
->fields(array(
'expire' => 0,
'status' => ADVANCEDQUEUE_STATUS_QUEUED,
))
->condition('item_id', $item->item_id);
return $update
->execute();
}