Six-segment cron expressions #367
GeoffArmstrong
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey Geoff, Coravel doesn't support setting a raw 6 segment cron expression, but you can do seconds-based scheduling like: scheduler
.Schedule<MyInvocable>()
.EveryThirtySeconds(); There are further restrictions using the fluent API that you can do too like: scheduler
.Schedule<MyInvocable>()
.EveryThirtySeconds()
.Weekend(); So this would only run on the 30 second mark of the minute during weekend hours (based on UTC times), for example. For your use case, I think it would depend on how complex your cron expressions are and whether those translate into what the fluent API offers. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a number of use cases where six segment cron expressions are a big step up from five segment cron expressions (jobs I currently run using Azure Webjobs). The six segments being: second, minute, hour, day, month, and weekday. I have jobs that I want to execute at particular times during each minute (e.g. 30 seconds after the start of the minute). Is this something that coravel supports, or is it just five segment cron expressions?
Beta Was this translation helpful? Give feedback.
All reactions