High prefect community I have add a time out confi...
# ask-community
l
High prefect community I have add a time out config to my flow (6hours) however some flows get stuck in the running state for days Did anyone ever encounter this issue?
m
i've had this happen to me once. I ended up manually suspending the flow from the UI
1
I wondered whether it was a bug but didn't bother to report it
l
Oh okay interesting, well I'm wondering if it's not related to how the state of flows is communicating to the flow_run_state table
m
Are you currently using workers or agents?
l
Hello @Mihir Thatte I'm using workers
m
One way to mitigate this would be to configure an automation for your flow runs. You can have a similar functionality where you have your flow runs automatically cancel or re-run if they cross a certain time threshold (6 hrs, 12 hrs, etc...). If your issue stems from the execution environment while your code is running, switching to an automation should help. Here are our automation docs: https://docs.prefect.io/latest/concepts/automations/#create-an-automation
1
l
thank you very much