Skip to main content

cancel_callback

Function cancel_callback 

Source
pub async fn cancel_callback<'e, E>(
    executor: E,
    job_id: i64,
    run_lease: i64,
) -> Result<bool, AwaError>
where E: PgExecutor<'e>,
Expand description

Cancel (clear) a registered callback for a running job.

Best-effort cleanup: returns Ok(true) if a row was updated, Ok(false) if no match (already resolved, rescued, or wrong lease). Callers should not treat false as an error.