https://dagster.io/ logo
#dagster-feedback
Title
# dagster-feedback
u

马钰鹏

01/29/2023, 11:04 AM
Another issue is when using a branching structure, if I have an operation that will be executed regardless of whether branch_1 or branch_2 is selected, how should I do this? If you could answer this, I would greatly appreciate it.
Copy code
@op(out={"branch_1": Out(is_required=False), "branch_2": Out(is_required=False)})
def branching_op():
    num = random.randint(0, 1)
    if num == 0:
        yield Output(1, "branch_1")
    else:
        yield Output(2, "branch_2")
j

jamie

01/30/2023, 3:43 PM
Hi, does the downstream op need to use the data returned as branch_1 or branch_2?
d

Dagster Jarred

02/01/2023, 7:16 AM
also, these questions should go into #dagster-support ❤️ to get the best response times