Hi For automation-based workflows, what happens wh...
# ask-community
a
Hi For automation-based workflows, what happens when the worker goes down during submission. We found that the Run state is set to Pending (with late time) and the workflow is not picked up by worker for execution when it comes back. Shouldn't the run be picked up and executed? What is the way out?
H, can anyone help on this query?
n
I usually delete the flow run and start another one when this sort of thing happens. Make sure to kill any scheduled reruns that would happen while the worker/agent is down as well, or else you’ll see a lot of scheduled tasks start when the worker is back up
a
Thanks Nathan. Your solution would work when someone is manually managing flows. In cases where flow runs are triggered by application dynamically this won't be practical. If there is nothing possible from Prefect side then the only possible way is to run a scheduled process that checks for such workflows at regular intervals and retriggers them.