https://prefect.io logo
Title
s

Shaoyi Zhang

03/16/2023, 6:12 PM
Hi! In Prefect 2, when a flow run succeeded, I was able to retry the flow run. However, if there are task runs that have succeeded, the flow retry will fail with this error:
Task run 'xxxxx' already finished.
... exception stack trace ...
prefect.exceptions.MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.
If I manually set all task runs in the flow run to failed, then the flow retry will succeed. Is this a bug or a feature? My expectation is when we hit the retry button for flow runs, the state of task runs should get reset. Am I missing something? Thank you!
prefect version 2.8.5, k8s jobs