Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.27k stars 106 forks source link

Conditions: cron "0/20 * * * *" is not same as "*/20 * * * *" #227

Closed nikitazavadsky closed 9 months ago

nikitazavadsky commented 10 months ago

Describe the bug "0/20 " cron pattern launches my tasks hourly while "/20 *" launches tasks every 20 minutes

There is a screenshot of my log stats from heroku for 0/20 pattern

image

there is one for /20 *

image

Expected behavior I expect these patterns to behave in the same way

Desktop (please complete the following information):

zzl221000 commented 9 months ago

Hey, man, "0/20 *" is not standard cron. Heroku ignores "/20".

rontab.guru

nikitazavadsky commented 9 months ago

@zzl221000

Thanks for your response. I've already changed it to the standart pattern and it works as expected