function hook_cron_queue_info


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_cron_queue_info()
cle7 system.api.php hook_cron_queue_info()
elmsmedia7 system.api.php hook_cron_queue_info()
icor7 system.api.php hook_cron_queue_info()
meedjum_blog7 system.api.php hook_cron_queue_info()
mooc7 system.api.php hook_cron_queue_info()

Declare queues holding items that need to be run periodically.

While there can be only one hook_cron() process running at the same time, there can be any number of processes defined here running. Because of this, long running tasks are much better suited for this API. Items queued in hook_cron() might be processed in the same cron run if there are not many items in the queue, otherwise it might take several requests, which can be run in parallel.

Return value

An associative array where the key is the queue name and the value is again an associative array. Possible keys are:

  • 'worker callback': The name of the function to call. It will be called with one argument, the item created via DrupalQueue::createItem().
  • 'time': (optional) How much time Drupal should spend on calling this worker in seconds. Defaults to 15.
  • 'skip on cron': (optional) Set to TRUE to avoid being processed during cron runs (for example, if you want to control all queue execution manually).

See also



Related topics

7 functions implement hook_cron_queue_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

aggregator_cron_queue_info in modules/aggregator/aggregator.module
Implements hook_cron_queue_info().
boost_crawler_cron_queue_info in sites/all/modules/ulmus/boost/boost_crawler/boost_crawler.module
Implements hook_cron_queue_info()
feeds_cron_queue_info in sites/all/modules/ulmus/feeds/feeds.module
Implements hook_cron_queue_info().
file_entity_cron_queue_info in sites/all/modules/ulmus/file_entity/file_entity.module
job_scheduler_cron_queue_info in sites/all/modules/ulmus/job_scheduler/job_scheduler.module
Implements hook_cron_queue_info().

... See full list

1 invocation of hook_cron_queue_info()
drupal_cron_run in includes/
Executes a cron run when called.


modules/system/system.api.php, line 620
Hooks provided by Drupal core and the System module.


function hook_cron_queue_info() {
  $queues['aggregator_feeds'] = array(
    'worker callback' => 'aggregator_refresh',
    'time' => 60,
  return $queues;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.