I’m confused by what I thought was a core feature ...
# ask-community
s
I’m confused by what I thought was a core feature in Prefect – manual retry of a failed task in an otherwise successful flow. In Prefect 1, when a flow fails with some completed tasks and some failed tasks, and a manual flow retry is triggered in the UI, only the failed tasks start. This is nice. In Prefect 2, the entire flow restarts including all the completed tasks. This is bad, as these all take a long time to rerun.
j
Hi Simon! Thanks for the question. We’re working on an update for your issue - you should be able to follow along here: https://github.com/PrefectHQ/prefect/issues/10749
s
Thanks Jenny, much appreciated
Specifically this statement from
cicdw
there contains the answer:
anytime a completed state has an empty data payload Prefect decides to rerun the task
As none of our tasks by design return anything, Prefect just YOLO reruns them even when completed.
j
Actually, rereading this your issue should be fixed by turning on result persistence