Andrew Huang
03/24/2022, 10:33 PMfrom prefect.engine.state import Skipped
in orion? Maybe Cancelled
? https://orion-docs.prefect.io/concepts/states/#state-details
How do I import it?
from prefect.states import Cancelled
doesn’t seem to workKevin Kho
03/24/2022, 10:36 PM@flow
def myflow():
a = task_one()
if a.result() == "something":
task_two()
so effectively the SKIP is controlled by the if statement. In Prefect one you can’t, use the if
so you raise SKIP to propagate the signal downstreamAndrew Huang
03/24/2022, 10:38 PMKevin Kho
03/24/2022, 10:39 PMAndrew Huang
03/24/2022, 10:40 PMAnna Geller
03/24/2022, 10:52 PMAndrew Huang
03/24/2022, 10:53 PMKevin Kho
03/24/2022, 10:57 PMAnna Geller
03/24/2022, 10:58 PMAndrew Huang
03/24/2022, 10:58 PMAnna Geller
03/24/2022, 11:07 PMAndrew Huang
03/24/2022, 11:10 PM