Skip to main content

check_callback_state

Function check_callback_state 

Source
pub async fn check_callback_state(
    pool: &PgPool,
    job_id: i64,
    callback_id: Uuid,
) -> Result<CallbackPollResult, AwaError>
Expand description

Check the current state of a job during callback wait.

Handles the early-resume race: if resume_external won the race before the handler transitioned to waiting_external, the callback result is already in metadata and this returns Resolved.