Hi! is there a possibility to manually retry a fai...
# ask-community
d
Hi! is there a possibility to manually retry a failed task on prefect 2.0 UI?
a
Restarts functionality from the UI is not available yet in Prefect 2.0
d
Thanks @Anna Geller
👍 1
Is there a timeline for this feature to be implemented? @Anna Geller
a
no public timeline is available for given features, the easiest way of following up on specific features would be to either follow the #CKNSX5WG3 channel with release notes or subscribe on Discourse for both
release-notes
and
restarts
tags
d
hi @Anna Geller - Is this not core functionality for an orchestrator and not a feature? Can you expose a bit more information to help us be strategic about versioning, we have been recommended to start with 2.0 over stable 1.0 and understanding approximately when or at least if the GA release of 2.0 will include this. Thanks.
a
I would say retries is core functionality, which is already available. Restarts from the UI is quite a complex feature that requires several API calls, results backend, and UI integration I need to jump, I can elaborate on this more later if you need more details
d
Is there any other way to trigger a restart? We have long running jobs, which can fail for various reasons, sometimes dependent on external systems, so resuming a flow midway is far better than resuming it from the beginning
a
That makes sense and totally valid (and common) use case. A really nice feature of Prefect 2.0 is that you don't have to register a flow in order to run it - you could connect even to your production workspace from a terminal with a single command:
Copy code
prefect cloud login --key XXX
In your flow, you can comment out the tasks that you don't want to rerun. Then, you can run your flow as any Python script
Copy code
python yourflow.py
and the run will be tracked in the UI in your chosen workspace, without having to redeploy any code - would this solution work for you?
s
@Hongkai Yu This thread may answer your question
🙌 1