You are here

function advancedqueue_example_advanced_queue_info in Advanced Queue 7

Implements hook_advanced_queue_info().

File

advancedqueue_example/advancedqueue_example.module, line 11
Example module for Advanced Queues module.

Code

function advancedqueue_example_advanced_queue_info() {
  $items['example_queue'] = array(
    'label' => t('Example queue'),
    'worker callback' => 'advancedqueue_example_worker',
    'groups' => array(
      'example',
    ),
    // The number of seconds to retry after.
    'retry after' => 10,
    // The maximum number of attempts after a failure.
    'max attempts' => 5,
    // Time after which an item is released from processing and requeued.
    'lease time' => 45,
  );
  return $items;
}