Quy
03/12/2022, 12:07 PMconfig_from_files
, and partitioned_config
to illustrate
config=[
partitioned_config,
config_from_files(
[file_relative_path(__file__, os.path.join("..", "..", "run_config", "pipeline.yaml"))]
)
]
in pipeline.yaml, I want to config resource io_manager
e.g: s3_bucket
…johann
03/14/2022, 11:20 PMpipeline.yaml
with each output of the partitioned config?config_from_files
, it just reads the files and returns the parsed yaml. In your partition definition function, you could merge the result of file_relative_path(__file__, os.path.join("..", "..", "run_config", "pipeline.yaml"))
with whatever you’re currently returningQuy
03/15/2022, 12:26 AMpipeline.yaml
fileconfig=deep_merge_dicts(
partitioned_config(),
config_from_files(
[file_relative_path(__file__, os.path.join("..", "..", "run_config", "pipeline.yaml"))]
)),
but got error
Failure condition: config param must be a ConfigMapping, a PartitionedConfig, or a dictionary, but is an object of type
johann
03/15/2022, 12:34 AM@daily_partitioned_config(start_date=datetime(2020, 1, 1))
def my_partitioned_config(start: datetime, _end: datetime):
...
Quy
03/15/2022, 12:38 AMjohann
03/15/2022, 12:43 AMprha
03/15/2022, 12:46 AMQuy
03/15/2022, 1:28 AM