Skip to main content

release_job

Function release_job 

Source
pub async fn release_job(
    conn: &DatabaseConnection,
    id: i64,
    attempts: u32,
    available_at: DateTime<Utc>,
) -> Result<(), Error>
Expand description

Reset a job to pending, bump its attempt count, and set a new available_at (used by the worker after a retryable failure).