Skip to main content

mark_completed

Function mark_completed 

Source
pub fn mark_completed(conn: &Connection, job_id: &str) -> Result<bool, Error>
Expand description

Mark a job as completed and set completed_at.

Only transitions jobs that are currently processing. Returns true if the update was applied, false if the job’s status had already changed (e.g., cancelled).