pub async fn set_first_failed_at_for_testing(
conn: &mut PgConnection,
id: Uuid,
first_failed_at: DateTime<Utc>,
) -> ModelResult<()>Expand description
Backdates first_failed_at for a registration, so a test can simulate a retry window that
started long enough ago for its retry limit to have elapsed.
Exists only for test setup: transition owns this stamp, and calling this from a live path
would desynchronize it from the failure it is supposed to describe.