Hey
@Miremad Aghili are you just using the Local Executor for your flow runs or a different one? for context here this come sometimes happen if the underlying infrastructure running the flow disappears prior to the state of the flow being updated, ideally the Zombie Killer process should pick up these flow runs and cancel/fail them though there are some circumstances where that doesn't happen. One way to address is to utilize Automations
https://docs-v1.prefect.io/orchestration/concepts/automations.html#overview
forgoing the automation route if you wanted to do this yourself you could also have a separate flow that picks up running flows and cancels/fails them if their start time is older than some predetermined set of time, (same thing really as the automation but you'll have more fine grained control) using these queries