https://prefect.io logo
l

Leon Kozlowski

01/24/2022, 4:10 PM
Is there a way to restart a flow run from the beginning rather than from failed/cancelled task state?
k

Kevin Kho

01/24/2022, 4:13 PM
It would be easier to just create a new flow run. You would have to move all the states of the tasks back into scheduled.
l

Leon Kozlowski

01/24/2022, 4:13 PM
Ok, is there a way to inject the
scheduled_start_time
context value in a new flow run?
k

Kevin Kho

01/24/2022, 4:16 PM
If you create a new flow run, it just creates a Flow with schedule “now”. I think I would use Python and the
create_flow_run
task with the schedule you want, and then because it’s late it will just start immediately.
I would just use this and call the
.run()
method. No need to put it in a Flow
👍 1