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?