<@ULVA73B9P> when will prefect show late for the f...
# ask-marvin
v
@Marvin when will prefect show late for the flow runs for the process and kubernetes worker ? we've restarted the prefect server and db now
m
thought for 155.2 seconds
In Prefect 3.x, a flow run is shown as Late when its scheduled start time is more than 15 seconds in the past and it is still in the
Scheduled
state. So by default: - scheduled for
12:00:00
- still not picked up / started by about
12:00:15
- Prefect marks it as Late A few important points: - This is not specific to process vs Kubernetes workers — both behave the same - Late is determined by the server/API services, not by the worker type - The late-runs monitor checks periodically, by default about every 5 seconds So after restarting the Prefect server and DB: - any runs that are still
Scheduled
- and whose scheduled time is already beyond the late threshold should be picked up again and marked Late shortly after the services come back up. If they are not showing Late after restart, likely causes are: - the late-runs service is disabled - the runs are no longer actually in
Scheduled
- the scheduled time is not yet beyond the threshold - the API/background services are not running correctly after restart Relevant settings: -
PREFECT_API_SERVICES_LATE_RUNS_ENABLED
-
PREFECT_API_SERVICES_LATE_RUNS_AFTER_SECONDS
default
15
-
PREFECT_API_SERVICES_LATE_RUNS_LOOP_SECONDS
default
5
If you want, I can help you check whether your server has the late-run service enabled and what state those flow runs are currently in.