-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow pipeline to create pipeline #4213
Comments
Without the generation overhead, we could introduce stages:
stage1:
...
stage2:
depends_on: stage1
... |
Thanks for #4734, it address one of the major limitation of DVC! But this issue is about something different, more powerful, so I don't think it should be closed. |
@MatthieuBizien Have you considered the alternative approach that @skshetry suggested? For now we are not sure if we will ever allow dynamic generation like you've suggested, as there are alternatives like parametrization or generating the whole pipeline programmatically. |
Like #3549 say, "A run of a pipeline is like a function call". Based on that analogy, we can't right now call a function from another function:
f(g(x))
doesn't make any sense for the current dvc model. As discussed in #331, it would allow to use very flexible workflows by allowing to dynamically created pipelines.Some potential applications:
A possible interface could be:
dvc run
could specify a yaml file to use, instead ofdvc.yml
dvc run -n "create_pipe" -o generated_pipe.yml generate_pipe.sh
would create the generated_pipe.yml file, anddvc repro -c generated_pipe.yml
would execute all the steps dynamically defined.The text was updated successfully, but these errors were encountered: