public function SystemQueue::releaseItem

cis7 system.queue.inc public SystemQueue::releaseItem($item)
cle7 system.queue.inc public SystemQueue::releaseItem($item)
elmsmedia7 system.queue.inc public SystemQueue::releaseItem($item)
icor7 system.queue.inc public SystemQueue::releaseItem($item)
meedjum_blog7 system.queue.inc public SystemQueue::releaseItem($item)
mooc7 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 DrupalQueueInterface::releaseItem

File

modules/system/system.queue.inc, line 261
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();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.