Jai P04/26/2022, 5:39 PM
statement in prefect 2.0: is there a rough timeline for when that may be introduced? Also, are there any major differences that are planned between how they work in prefect 1.0, where i think you can only conditionally go between tasks (to, say, possibly supporting subflows)?
inside a flow now.
@flow def myflow(): a = task_one() if a.result() == ... ....
Jai P04/26/2022, 5:44 PM
was coming, and i wasn't sure in what case i'd use that over just native
is more flexible. The previous
only tested for equality. Not greater than or less than so you needed an intermediate task to achieve that.
Jai P04/26/2022, 8:04 PM
statements more, but im curious if that has the same implication that it did in prefect 1.0 (meaning tasks/subflows not run due to an
are marked as
Jai P04/26/2022, 9:49 PM
, does that possibly introduce some weirdness in execution/dependencies?
i won't necessarily see that
@flow def my_flow(): a = task_one() if a.result(): task_two() else: task_three()
was `wait_for`d on
but they will wait for
Jai P04/26/2022, 9:54 PM
wouldn't necessarily reflect the waiting
. if you don't care about that particular thing...then it is fine because it implicitly happens anyways
Jai P04/26/2022, 10:03 PM