-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run every X minutes #75
Comments
->everyMinute(5) is a more elegant syntax rather than: $runtime = array(0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55); |
I used $object->at('42 * * * *') to run cron job after every 42 minutes. But when the cron job is run, it is run more than one time. For example. A cron job is scheduled at every 42 minutes. When the time came, the cron job runs at the exact time but also multiples time. Any help would be appreciated. |
@peppeocchi I took the liberty to write a patch for this feature: #82. Could you please review? Thanks. |
There are some jobs I would like to schedule every x minutes.
I figured I could do it with
->everyMinute(5)
or maybe->hourly('*/5')
but both aren't supported.The latter could work if
validateCronRange()
is fixed to support it.For now I use this workaround:
->at('*/5 * * * *')
. But it is ugly, and kind of defeats the purpose of using an interface for scheduling.I would think this is a common enough usage to be supported by the interface.
The text was updated successfully, but these errors were encountered: