Skip to main content

reorder_pending

Function reorder_pending 

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

Atomically update the priority of a pending job.

Returns Ok(true) if the job was updated, Ok(false) if the job exists but is not pending, or Err with a not-found message if the job doesn’t exist.