If you want to process the queue outside of cron, and be able to stop it independent on cron, you have to return 'skip on cron' option as TRUE at hook_cron_queue_info.
This patch:

  • Adds a checkbox in the admin page. Previous text from above status description is mostly carried over to checkbox description.
  • Returns 'skip on cron' value on hook_cron_queue_info() accordingly.
  • Adds setting uninstall.

Queue processing defaults to happen on cron as previously if left unconfigured to preserve current behaviour.
Setting is named 'queue_mail_send_on_cron' to match UI. I just negate it in the hook_cron_queue_info().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven Jones’s picture

Oh yes, great idea!

amontero’s picture

Status: Active » Needs review
FileSize
2.33 KB

  • Steven Jones committed 8543c7b on 7.x-1.x authored by amontero
    Issue #2447625 by amontero: Add configurable 'skip on cron' option to...
Steven Jones’s picture

Status: Needs review » Fixed

Thanks so much for the feature idea and the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.