Prefect v1 question - i sometimes see that a flow ...
# ask-community
j
Prefect v1 question - i sometimes see that a flow run or two will be stuck in a scheduled state - there are agents able to pick it up but it never goes from scheduled to submitted. Cancelling and restarting the flow run fixes it. A few times the issue is that they are stuck in a submitted state, but never go to running. Same things fixes those. Is there anything in particular that would cause this that I can attempt to change? Otherwise, are there any recommendations for how to write a graphql query to catch these and programatically cancel/restart them?
1
k
Hi @Jessica Smith, here's a graphQL example that you can modify to query for the stuck runs. And here is a discourse article describing why your flow run might be stuck in a scheduled state