Skip to main content

prune_old_jobs

Function prune_old_jobs 

Source
pub fn prune_old_jobs(conn: &Connection, days: u32) -> Result<u32, Error>
Expand description

Delete completed/failed/cancelled jobs older than the specified number of days. Returns the number of jobs deleted.