Hi. In Prefect 1 we use `ENDRUN` exception to fail...
# prefect-community
v
Hi. In Prefect 1 we use
ENDRUN
exception to fail and do not retry the task, does it exist in Prefect 2?
👀 1
s
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
How about tasks with retries? I think raise exception will not fail, but will retry.