Skip to main content

schedule_next_attempt

Function schedule_next_attempt 

Source
pub async fn schedule_next_attempt(
    conn: &mut PgConnection,
    id: Uuid,
    next_attempt_at: DateTime<Utc>,
) -> ModelResult<()>
Expand description

Defers when the pipeline may next claim this row; the delay is the caller’s policy.

Does not touch first_failed_at, which transition owns: states that wait on a human must defer to stay out of claim_due’s LIMIT, and anchoring the retry window there would expire them.