Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCronJitter ¶
ApplyCronJitter deterministically shifts the minute field of a standard 5-field cron expression by hash(emitterID) % floor(window/minute) minutes, spreading emitters that share a schedule across the window instead of firing them all on the same tick.
It never fails: a zero or sub-minute window, an empty emitter ID, an unsupported minute-field shape (ranges, names, descriptors), or a rewritten expression that fails cron.ParseStandard all return the schedule unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.