Is there an equivalent to ```from prefect.engine.s...
# prefect-community
a
Is there an equivalent to
Copy code
from 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 work
k
None yet, but it will be added. What are you trying to do though? Cuz in Orion you can do:
Copy code
@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 downstream
a
Okay that makes sense, but I think it’d be nice to have an indicator on the server that the run was “skipped” or “cancelled” because the requirements were met (e.g. there hasn’t been new data)
k
Yes SKIP will be a thing because there are use cases where this if is janky to shape
a
okay thanks!
a
@Andrew Huang why no longer Discourse? 😢
a
😄 oh I was going to report back on Discourse (and I think it was quite late for you so I wanted Kevin to help me first haha)
👍 1
k
Anna doesn’t sleep 😛
👀 1
a
once every couple of days 😂
😪 1
a
my brain wouldn’t function without my 7+ hours lol
a
ah I see; I was searching for State and I don’t think it showed up
👍 1