https://prefect.io logo
i

Ivan

07/25/2023, 9:21 PM
Hi! One of the scheduled ECS Push flow run stuck in the Pending state for a while. Is there any best-practice solution to restart the stucked flow? Here is the ECS Push json definition: https://gist.github.com/gulivan/aaed95590eb3afd39a0bc0b7339350c5 I also tried to create an automation (2-3) to but not sure that trigger the "infer deployment" will restart the stuck flow run.
w

Will Raphaelson

07/25/2023, 9:22 PM
that automation should in fact work - curious though, is there anything of note in your ECS logs?
i

Ivan

07/25/2023, 9:23 PM
@Will Raphaelson Thank you! It will be kinda hard to find the traces (because other flow runs were executed successfully) but if I'll experience this again — will be happy to share the details!
👍 1
w

Will Raphaelson

07/25/2023, 9:31 PM
great!
a

Arnaud

08/14/2023, 6:30 AM
Hi @Ivan, Did you find the root cause of this problem? We are having the same problem
i

Ivan

08/14/2023, 6:36 AM
@Arnaud hi! Nope, sometimes it still happens so I've set an automation to fix this. Not a target solution as I want, but it works
a

Arnaud

08/16/2023, 1:00 PM
@Ivan Cancel it if it stays more than .... minutes in pending state ? Have you find a way to restart it instead?
i

Ivan

08/16/2023, 1:05 PM
@Arnaud I guess that's basically a restart with the same deployment input parameters which works fine in my case. But it cancels the old flow run and spawns another one.
a

Arnaud

08/16/2023, 1:08 PM
@Ivan How did you manage to restart it with automation ?
i

Ivan

08/16/2023, 1:46 PM
Run a deployment Infer deployment (to copy run params)