You are here

public function ComputingQueue::releaseItem in Drupal Computing 7.2

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

./computing.queue.inc, line 69

Class

ComputingQueue
This file provides Queue support, an extra layer to handle computing records. The only benefit here is to provide an interface for Queue, perhaps people don't need it.

Code

public function releaseItem($item) {
  if (!is_object($item)) {
    $item = (object) $item;
  }
  return computing_release($item->id);
}