Dynamic DAG #674
Replies: 1 comment
-
Hi @alexander-myltsev - dynamic configuration is something we're looking to address more robustly in the future, but the mechanisms you describe are close to what I would recommend today. In general - we're keen to encourage as little 'magic' as possible. One of the trends we see emerging is that pipelines DAGs should be immutable (i.e. specific nodes and flows are static), but the configuration which defines the inputs/outputs can be dynamic. This is a subtle difference, but an important one in terms of readability/maintainability/mental model complexity etc. Are you running Kedro inside an orchestrator (e.g. Airflow/Argo etc.)? Perhaps this is a situation where you can use the orchestrator to dynamically parametrise your runs via CLI commands / environment variables. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thank you for the framework. I'm on
0.16.6
.I noticed from the source code that Kedro DAG is very static. That causes some questions.
DS_ID
I'd like to parametrize
DS_ID
atcatalog.yml
per each run at production. The only possibility I found is as follows:TemplatedConfigLoader
at hooksconf/concrete_ds_id/globals.yml
folder on the flight and pass--env concrete_ds_id
to run.Is there a better way?
ProjectHooks
to create nodes dynamically atregister_pipelines
. How to do that?Beta Was this translation helpful? Give feedback.
All reactions