Piotr Danielczyk
05/16/2023, 2:55 PMop
many times, based on output of another op
?
@op(
out={"result": Out()}
)
def yield_result_for_each_value_in_list():
for value in ['first', 'second', 'third']:
yield Output(value, "result")
@graph()
def my_graph():
result = yield_result_for_each_value_in_list()
another_op(result)
# in this graph, I expect that another_op() would be called 3 times
In the above code, I would expect another_op()
to be called 3 times: first time with first
as an argument, second time with second
, third time with third
.
Is it possible to achieve it with Dagster?martin o leary
05/16/2023, 2:58 PMPiotr Danielczyk
05/22/2023, 7:56 AM