Not too sure if this is a UI thing or me misunders...
# prefect-ui
q
Not too sure if this is a UI thing or me misunderstanding something, but how can a flow complete with a failed task run
n
hi @Quinn - is this prefect 3.x or 2.x?
q
Mmmm. 2.x
Is that the problem here?
n
not necessarily, I was just pointing out that there is an expected difference between the versions here. in general in 2.x its possible to suppress task failures and finish your flow in a Completed state, for example
Copy code
In [1]: from prefect import flow, task

In [2]: @task
   ...: def bad():
   ...:     raise ValueError
   ...:

In [3]: @flow
   ...: def ok_with_failure():
   ...:     return bad(return_state=True).is_failed()