Skip to main content

mark_processing

Function mark_processing 

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

Mark a job as processing and set started_at.

Only transitions jobs that are currently pending. Returns true if the update was applied, false if the job was no longer pending (e.g., cancelled).

Note: Prefer claim_next_job or claim for executor use — they atomically select and mark the job as processing in a single transaction.