Skip to main content

next_job_id

Function next_job_id 

Source
pub fn next_job_id(now_ms: i64) -> String
Expand description

A fresh, process-unique background job id ("bg-<hex-ts>-<hex-seq>"), given the caller’s own millisecond timestamp (kept as a parameter rather than reading the clock in here, so this stays a pure function for the unit tests below).