https://prefect.io logo
g

Giacomo Chiarella

08/04/2023, 12:15 PM
Would this restart a flow run?
Copy code
await client.set_flow_run_state(flow_run_id=flow_run.id, state=prefect.states.Retrying())
I need to do that because, when the ec2 instance is terminated for some reasons, if the restored backup was made when some flows were running, all these flow runs would be stuck in running state without actually doing anything