https://prefect.io logo
Title
v

Vadym Dytyniak

12/05/2022, 11:17 AM
Hi. In Prefect 1 we use
ENDRUN
exception to fail and do not retry the task, does it exist in Prefect 2?
👀 1
s

Sahil Rangwala

12/06/2022, 4:32 PM
Hello! There are many end state use cases that determine the state, outlined here. Additionally, in Prefect 2.0, an exception that is raised within the flow function will cause it to fail. Hope this helps!
v

Vadym Dytyniak

12/06/2022, 4:40 PM
How about tasks with retries? I think raise exception will not fail, but will retry.