- Issue created by @srdtwc
- π¬π§United Kingdom scott_euser
Do you have a cron job set up on your server to run again the standard cron URL or run drush cron every minute?
No module can effect your server configuration, what this does is have a single efficient point to stop everything from just running every minute.
But drupal cron still needs to be hit. Then this module decided which to run or skip.So eg:
- Set up your server cron to trigger drupal cron every minute
- Without this module: all tasks run every minute
- With this modile: tasks only run when they are set to run per your schedule, and are otherwise skipped
The only exception is if in the specific cron job UI for editing your queue worker, you decide to tick the single URL only. Then it won't ever be run by the default cron and you must set up a seperate cron job on your server.
If your server does not support cron job configuration (eg Pantheon) they have a support page on it I believe.
- πΊπΈUnited States srdtwc Skokie, IL
Thank you for the detailed response! I think I understand the workflow now.
To test this out, I set
$config['automated_cron.settings']['interval'] = 120;
in settings.php to run cron every 2 minutes.Then I configured my queue in Simple Cron to run every 15 minutes. I was able to see cron run every 2 minutes but my queue only ran every 15 minutes as expected.
So, if I want to have cron run every 3 hours but have my queue run more often than that, I will need to trigger the queue URL some other way, correct?
- π¬π§United Kingdom scott_euser
Correct but the skipping is quite efficient so you could also just run every minute and skip everything but your queue. Up to you
- πΊπΈUnited States srdtwc Skokie, IL
Ah that's a good idea. I feel like I understand how all of this works now.
Feel free to close this ticket and thank you for your time. Hopefully this thread helps others in the future.
- π¬π§United Kingdom scott_euser
No problem at all and happy to help. All the best with your project
Automatically closed - issue fixed for 2 weeks with no activity.