[FEATURE REQUEST] Support hashed expressions in cron schedules #67485
OrangeDog
started this conversation in
Feature Requests
Replies: 1 comment
-
|
If there is a default hash_id, I think it would work better if it included the minion id and also the values of the Btw, I think I found a somewhat hacky way to implement this in jinja in #60567 (comment), but native support would be nicer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
When you want to run a schedule periodically, independent of the service start time, but not have minions all fire at the same time.
Describe the solution you'd like
Being able to supply "Jenkins-style" hashed expressions in the cron specification.
A basic implementation could supply the minion id as the
hash_idfor every usage ofcron. However, allowing the user to provide their owncron_hashmay be preferable, especially as the presence ofhash_idaffects the meaning of keywords (e.g.@weekly).It could detect an
Hin the input and provide a fallback hash if one is not set to make things easier.Describe alternatives you've considered
splayprovides similar functionality, but does not give a consistent period and does not work with cron specifications.Additional context
Requires
croniter >= 1.0.12Beta Was this translation helpful? Give feedback.
All reactions