Skip to main content

mark_failed_with_retry

Function mark_failed_with_retry 

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

Mark a failed job for retry with backoff. Sets next_run_at based on the failure class and attempt count, then resets status to pending.