-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Advanced cron expressions #382
Comments
You can probably do something like below. I assume it'll check daily at 6PM, and then run the predicate to check if it should run on that day.
|
@ivoloshin thank you for the quick answer. For me, I actually solved it simply by running the job daily as from you suggested and using the already mentioned Cronos library (https://github.com/HangfireIO/Cronos) in the When function. For the future, however, it would of course be nice if Coravel itselfs supports the full cron expression scope natively. |
I would like to run the task on the last day of the month or more specifically on the last working day of the month at 6pm.
This would work with the following cron expression "0 18 LW * *" unfortunately this is not supported by Coravel.
Would it be possible to extend the parser for these cron expressions to allow the usage of the commands L, W, ? and #, as it is the case in Hangfire, for example (https://github.com/HangfireIO/Cronos) ?
The text was updated successfully, but these errors were encountered: