Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Rules Scheduler relies on the Drupal core queue to run its tasks, via cron.
For sites with many scheduled tasks, Advanced Queue - which can run in a daemonized process separate from cron - can be more appropriate.
Comment | File | Size | Author |
---|---|---|---|
#12 | 2650398-12-scheduler-advancedqueue.patch | 5.98 KB | ZenDoodles |
#8 | 2650398-8-scheduler-advancedqueue.patch | 6.46 KB | TR |
#5 | 2650398-5-scheduler-advancedqueue.patch | 6.48 KB | TR |
#3 | rules_scheduler-advancedqueue-2650398-3.patch | 6.47 KB | pjcdawkins |
#2 | rules_scheduler-advancedqueue-2650398-2.patch | 5.3 KB | pjcdawkins |
|
Comments
Comment #2
pjcdawkins CreditAttribution: pjcdawkins at Centarro commentedFirst attempt. Patch co-authored with @kazanir.
Comment #3
pjcdawkins CreditAttribution: pjcdawkins at Platform.sh commentedAdds
rules_scheduler_delete_tasks()
which can delete queued Advanced Queue tasks,Comment #5
TR CreditAttribution: TR commentedRe-rolled #3 against current HEAD.
Comment #6
TR CreditAttribution: TR commentedI haven't tested the patch, but I can tell you that "recommends[]" is not a thing - it needs to be removed.
Since we have tests for rules_scheduler using the default core queue, I think we should also have a parallel set of tests which use Advanced Queue instead. This can be done by adding Advanced Queue as a test_dependency[].
Comment #8
TR CreditAttribution: TR commentedSorry, got my patches mixed up. Here's the correct re-roll:
Comment #9
TR CreditAttribution: TR commentedAlso, what needs to be done to clean up tasks in Advanced Queue when Rules Scheduler is uninstalled? See #2882504: Rules scheduler tasks are left in the queue table for how it's being handled with the Drupal core queue...
Comment #10
TR CreditAttribution: TR commentedNeeds to be re-rolled again against HEAD to fix the fuzz. But #6 and #9 need to be addressed too, so moving this to "Needs work".
If you would like to see this feature put into Rules, please work on the patch.
Comment #11
TR CreditAttribution: TR commentedThere doesn't seem to be any interest in getting this in to D7 Rules. I am moving it to D8 and postponing it. The maintainers of Rules do not intend to work on this, so if this is something you want to see implemented then please supply a patch and address the outstanding questions.
Comment #12
ZenDoodles CreditAttribution: ZenDoodles as a volunteer and at Platform.sh commentedRerolled to apply against 7.x-2.x, and removed the "recommends" bit.