Robert Szomolanyi
04/02/2026, 12:15 PMMarvin
04/02/2026, 12:15 PMMarvin
04/02/2026, 12:17 PMPREFECT_API_SERVICES_LATE_RUNS_ENABLED (default: true)
- PREFECT_API_SERVICES_LATE_RUNS_AFTER_SECONDS (default: 15)
- PREFECT_API_SERVICES_LATE_RUNS_LOOP_SECONDS (how often the service scans)
- Worker behavior:
- Workers poll for runs with state_type = "SCHEDULED". Since “Late” is still a SCHEDULED state, workers will pick it up and transition it to PENDING → RUNNING.
- Exception: if you use deployment concurrency with the CANCEL_NEW strategy and the limit is already full, late runs may be canceled instead of queued to run.
If you want, I can show how to tweak the lateness threshold for your environment or help set an Automation to alert on Late runs.