Skip to main content

complete_schedule_occurrence

Function complete_schedule_occurrence 

Source
pub fn complete_schedule_occurrence(
    conn: &Connection,
    id: &str,
    run_id: &str,
    next_due_at: Option<&str>,
) -> Result<(), String>
Expand description

Records the run and advances the due time atomically, avoiding replay after a process stops between those otherwise separate writes.