public function AcquiaLiftQueue::releaseItem in Acquia Lift Connector 7
Overrides SystemQueue::releaseItem().
Imposes a maximum number of retries for released items.
Parameters
$data:
Return value
bool|void
Overrides SystemQueue::releaseItem
File
- includes/
acquia_lift.classes.inc, line 1909 - Provides an agent type for Acquia Lift
Class
- AcquiaLiftQueue
- Class AcquiaLiftQueue
Code
public function releaseItem($item) {
if (!isset(self::$retries[$item->item_id])) {
self::$retries[$item->item_id] = 0;
}
elseif (self::$retries[$item->item_id] >= self::MAX_RETRIES) {
self::handleFailedItem($item);
$this
->deleteItem($item);
return;
}
parent::releaseItem($item);
self::$retries[$item->item_id]++;
}