How to do a bucle in a Dagster pipeline? #3209
-
Hello! I just receiving two dates, and for each day between this 2 dates I need to run a pipeline, how would you do it? Basically I need to run the pipeline for each date.
Another question, How would you pass the variable date in each solid? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @ericbellet. The capability you're describing is something that we're working on, but haven't completed implementing. The way Dagster currently works, the set of solids is fixed inside a pipeline definition. I.e., after the pipeline definition has been created, there's no way for a solid to say "launch a downstream solid for every output that I return". If you're willing to condense those parallel task into a single task, you could do something like what was suggested here: #3211. If you're able to accept those time parameters outside of Dagster config, you could do something like this:
|
Beta Was this translation helpful? Give feedback.
-
For your last question: #3213 |
Beta Was this translation helpful? Give feedback.
Hey @ericbellet. The capability you're describing is something that we're working on, but haven't completed implementing. The way Dagster currently works, the set of solids is fixed inside a pipeline definition. I.e., after the pipeline definition has been created, there's no way for a solid to say "launch a downstream solid for every output that I return".
If you're willing to condense those parallel task into a single task, you could do something like what was suggested here: #3211.
If you're able to accept those time parameters outside of Dagster config, you could do something like this: