ASHIK
12/26/2025, 2:46 AMMarvin
12/26/2025, 2:46 AMMarvin
12/26/2025, 2:51 AMprefect flow-run inspect <FLOW_RUN_ID>
If it exists, you’ll get details. If it’s been cancelled/deleted, you’ll see that status or a not-found.
3) Check the automation’s history
- In Automations > Your automation > History, confirm which event triggered the notification and when. If the event is “prefect.flow-run.Late,” it likely fired just before the run was cancelled or removed.
4) Check for anything that cancels scheduled runs
- Deployment paused/unpaused around that time?
- Any automations that cancel runs based on conditions?
- Concurrency settings that might cancel or reject new runs?
- Worker logs around that timestamp showing “marked late” followed by “cancelled” or “deleted”.
Ways to reduce false/ghost notices
- Add “stays Late for” a bit longer
- You mentioned 5 minutes — increasing this to 10–15 minutes can cut down on transient/short-lived lateness.
- Scope the automation
- Limit to the specific deployment(s) and work pool(s) you care about so you don’t get noise from test runs or subflows you don’t intend to watch.
- Make sure you can see subflows
- Disable “Parent runs only” when validating, or include flow name/deployment in your Slack template so you know what to look for.
References
- Automations overview: Automations docs
- Events (what triggers these notifications): Events docs
If you can share 2–3 example Slack messages (flow_run_id + timestamps) and confirm:
- Prefect Cloud or self-hosted?
- Workspace name
- The exact trigger you used (“Flow run stayed Late for 5 minutes”, or “Flow run stayed Scheduled for 5 minutes”, etc.)
- Whether subflows might be involved
…I’ll dig in and help pinpoint the exact cause in your setup.