Skip to main content


knackforge blog knowledge base

Drupal cron-queue

Drupal cron queue is very useful while running a big cron job. It will split a big cron job into small chunks and execute without getting timed out or being abruptly ended.

Three important things to remember in queue implementations are

  1. Create cron queue in hook_cron_queue_info
  2. Fill the queue with data
  3. Define worker callback function

STEP 1 - Create cron queue in hook_cron_queue_info

Subscribe to cron