Skip to main content

reclaim_stale

Function reclaim_stale 

Source
pub fn reclaim_stale(conn: &Connection, stale_secs: u64) -> Result<u32>
Expand description

Reclaim jobs that have been processing but have not sent a heartbeat within stale_secs seconds. Resets them to pending with worker_id cleared. Returns the number of jobs reclaimed.