Thanks for an interesting use case.

*/5 is just a short hand for 0-60/5, so I guess the general case that
needs to be considered here is how to use hash in "(s-e)/d" construct.

What's the good syntax here? H(s-e)/d? H(*)/d vs H/d?


2012/5/23 Maven User <maven.2.u...@gmail.com>:
> I just saw this and am kinda intrigued...
>
> Currently, we have 30 - 40 jobs all configured as */5 * * * * (so every 5
> min) for their polling interval.
>
> But then I see this "H" thing....
>
> "To allow periodically scheduled tasks to produce even load on the system,
> the 'H' token can be used. For example, people often use '0 0 * * *' for a
> daily job, but this ends up causing a large spike in midnight. In contrast,
> doing 'H H * * *' would still execute a job once a day, but the actual time
> of the day this gets executed will be spread over by Jenkins."
>
> I won't allow me to do H/5 * * * * (so randomly every five minutes) and
> IIUC, if I have H * * * *, that would be once an hour, randomly.
>
> Is there a way to use "H" in such a way that it will poll about every 5 min,
> but prevent every job from polling at the exact same time?



-- 
Kohsuke Kawaguchi

Reply via email to