Replies: 5 comments
-
Sorry the graph doesn't rendered on my phone. Does that mean local = base + local + dev |
Beta Was this translation helpful? Give feedback.
-
this is a very common use case whenever you have a series independent binary (for example) options. |
Beta Was this translation helpful? Give feedback.
-
@MatthiasRoels mentioned the need for something like this, although excess of layers makes it complex |
Beta Was this translation helpful? Give feedback.
-
We were introduced to another group of users that want this cc @jonascristens |
Beta Was this translation helpful? Give feedback.
-
Including @philiproeleveld as well |
Beta Was this translation helpful? Give feedback.
-
Description
Imagine using Kedro for running pipelines both locally and remote, with mock and warehouse data.
Development takes place on mock data (shared between the environments), but computational configuration differs (e.g. spark local vs cluster mode). On the warehouse data, again the data definitions are shared, but some properties vary, e.g. database names.
The two shared configurations above make that the configuration could be far more concise if we would be able to inherit from multiple environments:
The bottom four environments are used by the Kedro user.
Alternatively, we could reduce the number of environments:
This relies on the
local
environment overwriting the configuration set forremote
in the combineddev + remote
env.Is this something that could be supported?
Context
As mentioned above, this would simplify the config and avoid duplication of entries.
Possible Implementation
Configuration the
base
environment takes place in settings.py. Thebase_env
argument could be simply accepting adict
as well as a string to specify the base per environment.Possible Alternatives
Something might be achieved through the advanced features of the
OmegaConfigLoader
that I am not aware of.Beta Was this translation helpful? Give feedback.
All reactions