Charles Leung
04/01/2022, 7:23 PMowen
04/01/2022, 7:50 PM@job(config=my_config_transforming_function(my_config_from_files))
Charles Leung
04/01/2022, 7:57 PMowen
04/01/2022, 8:00 PMCharles Leung
04/01/2022, 8:00 PMowen
04/01/2022, 8:13 PM(simple config) -> (full config)
, let's call it base_config_mapping
. For your dev job, you can have @job(config=base_config_mapping)
, which will leave it up to the user to supply values for this simplified schema. For your prod job, you can do @job(config=base_config_mapping.config_fn(config_from_files))
. Once you transition this prod job to a partitioned job, you can change the job back to @job(config=base_config_mapping)
, and have your partitioned config mapping function do what you're describingCharles Leung
04/01/2022, 8:28 PMSerj Bilokhatniuk
04/01/2022, 9:09 PMConfigmapping.config_fn()
was the secret sauce I was missing to connect static config with config mappingsPhil Armour
04/02/2022, 8:08 PMExample: dagster job execute -f hello_world.py -j pandas_hello_world -c pandas_hello_world/solids.yaml -c pandas_hello_world/env.yaml
but if I try my gist with provided_configs = {"test1": "provided-1"}
I get a KeyError that I didn’t provide the second key to the configMapping - rather than it allowing me to proceed - and provide the missing key at invocation.