https://prefect.io logo
Title
a

ar

12/29/2022, 6:24 AM
how to fail a task / flow when there's error without raising exception. tq...
a

Anna Geller

12/29/2022, 4:46 PM
you can return Failed state directly from your task or flow
a

ar

12/30/2022, 3:20 AM
Hi Anna, thank you for your time, i did return Failed(message="the error message") however it also return the stacktrace together. The prefect.exceptions.FailedRun:
if its expected, i think should be OK, sorry for the inconveniences. the log view in Ui is better than accumulated one in console run ...
a

Anna Geller

12/30/2022, 3:43 PM
thx for update