Queue

Last updated on
15 July 2018

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

This plugin adds jobs for each cron queue defined in the system.

Queue lease time: The time in seconds to maintain a lease (lock) on the queue item, before it will be available for re-processing. This option can be overridden per job.

Time: The time in seconds to process items in a queue before ending. This can be defined in hook_cron_queue_info(), and that value will take precedence over this. This option, however, can be overridden per job.

Empty delay: Time in seconds to wait before trying again, if queue is empty. 0 = don't wait, just end job. This option can be overridden per job.

Item delay: Time in seconds to wait between processing each item. This option can be overridden per job.

Threads: Number of max threads to use for a queue. This can be used to achieve more throughput when processing a queue. An extra number of cron jobs will be created (value - 1) for processing the queue. This option can be overridden per job.

Threshold: Number of items in queue before a new thread is used. For example, if Threads is set to 4, and this is set to 10, it will require 10 items in the queue for 2 threads to be active, 20 items for 3 threads to be active, etc. This option can be overridden per job.

Help improve this page

Page status: No known problems

You can: