We can manually retry flow runs in the web interfa...
# ask-community
j
We can manually retry flow runs in the web interface with the
retry
button (screenshot attached). Is there a way to do this in Python with a Prefect Client? For example, I have a
FlowRun
that is in a crashed state:
Copy code
>>> flow_run.state_name
'Crashed'
Can I manually rerun it from the Python API. I'm aware of the flow run retry decorators. This is more for a debugging task, where switching back to the web interface is not efficient.
I couldn't find this specified in the documentation.
d
Look into states. U can change the state to retrying I think.
s
Yes you can change the state to
AwaitRetrying
. I don’t believe there’s another method available at the moment and I’m afk at the moment. Our API ref: https://docs.prefect.io/latest/api-ref/