Skip to main content

jitter_ms

Function jitter_ms 

Source
pub fn jitter_ms(job_id: &str) -> i64
Expand description

The job’s fixed jitter, 0 up to JITTER_MAX_MS, derived from its id (FNV-1a), so jobs due at the same minute don’t all start at once and a job’s offset is the same on every instance and after a restart.