function computing_release in Drupal Computing 7.2
Release the claimed record, assuming that the record is claimed by the
Parameters
$id The record ID to be released back to 'RDY' status.:
Return value
boolean: TRUE if successfully released the record. FALSE otherwise.
1 call to computing_release()
- ComputingQueue::releaseItem in ./
computing.queue.inc - Release an item that the worker could not process, so another worker can come in and process it before the timeout expires.
File
- ./
computing.module, line 411
Code
function computing_release($id) {
$record = computing_load($id);
if ($record && isset($record->status) && $record->status == 'RUN') {
rules_invoke_event('computing_event_released', $record);
return computing_update_field($id, 'status', 'RDY');
}
else {
return FALSE;
}
}