https://prefect.io logo
#prefect-community
Title
# prefect-community
i

Ilhom Hayot o'g'li

05/27/2022, 6:38 PM
Hi. I was trying to use conditionals instead of python if-else error occured 'reference tasks must be part of the flow'.
k

Kevin Kho

05/27/2022, 6:40 PM
This is because of the
= signals.SUCCESS
. That is not a task so you override that variable, and then it’s not a task anymore. You need to assign it to a task
i

Ilhom Hayot o'g'li

05/27/2022, 6:43 PM
I thought it is because of the condition task. Because it was working before
how to assign in this case correctly?
k

Kevin Kho

05/27/2022, 6:48 PM
I don’t think you even need the False case?
i

Ilhom Hayot o'g'li

05/28/2022, 9:22 AM
It worked without false case to. Thank you a lot
k

Kevin Kho

05/28/2022, 3:17 PM
Nice
8 Views