-
Notifications
You must be signed in to change notification settings - Fork 909
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
How to dynamically register a pipeline #1853
Comments
I haven't heard of this use case previously, but I think I can point you in the right direction:
In order to work with some built-in functionality, a certain structure is expected, but you can technically change it (e.g. compare the "standard" structure in spaceflights to the "simplified" one in the pandas-iris starter). Sorry this isn't a complete answer; please feel free to follow up if it's not helpful in terms of next steps to investigate. Perhaps sharing a bit more context on what the dynamic pipeline definition and registration workflow would look like in practice would also help. |
I'm not sure I fully follow your question. If you want to define a catalog (and pipelines) dynamically, maybe you shouldn't use the CLI that expects a more standard Kedro project structure. Instead, you can construct a runner object and pass your pipeline and catalog objects to it, as in the examples in https://kedro.readthedocs.io/en/stable/nodes_and_pipelines/run_a_pipeline.html#run-pipelines-with-io (if you expand the hidden block). |
Thank you very much for your reply. It is indeed possible to do as you said. I will ask you if you encounter any problems in the future. |
Great! I'm going to close this, then; please feel free to open a new issue (and reference this one, if necessary), should you run into related issues down the road! |
Description
How to complete the dynamic registration of pipelines without registering pipelines through the register_pipelines method of pipeline_registry.py
Context
I hope to be able to dynamically add nodes or pipelines with the help of API, instead of building fixed pipelines through code. At present, it is possible to dynamically add nodes and pipelines, and dynamically execute the above pipelines, but I cannot dynamically register the pipelines, which makes it impossible to execute through the command line. Or visualize the process
Possible Implementation
I hope that the directory structure is not too fixed. Can I remove the pipeline directory and the pipeline.py and node.py below? In fact, I don’t quite understand the role of this layer of fixed directory structure. Structural organization impact, e.g. on deployment, or operational impact
Possible Alternatives
(Optional) Describe any alternative solutions or features you've considered.
The text was updated successfully, but these errors were encountered: