https://dagster.io/ logo
#ask-community
Title
# ask-community
o

Or Asher

05/29/2022, 8:37 AM
Hey, i have a resource in our job definition which writes the
context.pipeline_run.run_config
to a remote log (keep track of which runs had which config along with other environment factors). currently that parameter doesnt include any default values used in the config implictly. is there a way to acquire all config values from the context?
🤖 1
o

owen

05/31/2022, 4:05 PM
hi @Or Asher! I believe
context.resolved_run_config
is what you're looking for here
o

Or Asher

06/01/2022, 6:17 AM
hey @owen, when was this added? it doesnt seem to exist for me during op execution or resource execution
o

owen

06/01/2022, 5:52 PM
@Or Asher ah sorry that's my bad. it's actually
context.get_step_execution_context().resolved_run_config
. one thing to note is that this is a structured ResolvedRunConfig object, so to make your life easier you probably actually want
context.get_step_execution_context().<http://resolved_run_config.to|resolved_run_config.to>_dict()
o

Or Asher

06/02/2022, 6:03 AM
thanks! i found that way of access after you suggested resolved_run_config
2 Views