https://dagster.io/ logo
#dagster-plus
Title
# dagster-plus
a

Arturo Martínez

05/24/2023, 9:32 PM
Hello! I’m having a bad time trying to pass some variables to
submit_job_execution
function.Here is what Im trying to do: https://pastebin.pl/view/50193ecd (pass some parameters to my asset using
submit_job_execution
)whats the correct way to create the dictionary for
run_config
?
1
👌 1
d

daniel

05/24/2023, 9:48 PM
Hi Arturo - I think this should work - you want to create a RunConfig object like in the example here: https://docs.dagster.io/concepts/configuration/config-schema#python
Copy code
run_config=RunConfig(ops={"timeseries_predict": MyAssetConfig(date_col_name="Date", pred_col_name="bla", steps_to_predict=10, lags=10)}).to_config_dict()
(the
to_config_dict
part probably should not be needed, but is today - we'll get that fixed)
❤️ 1
a

Arturo Martínez

05/24/2023, 9:48 PM
thanks Daniel! let me try it
Thanks a lot, Daniel, it works!
the docs never use
to_config_dict()
. As a suggestion, it should be included also in case of executing jobs using the client.
d

daniel

05/24/2023, 11:28 PM
Just landed a change to make it work without it!
❤️ 1
a

Arturo Martínez

05/24/2023, 11:50 PM
When I try to execute it without
to_config_dict()
I get
dagster._check.ParameterCheckError: Param "run_config" is not one of ['Mapping']. Got <dagster._core.definitions.run_config.RunConfig object at 0x119b172e0> which is type <class 'dagster._core.definitions.run_config.RunConfig'>.
so I suppose this change will be available later
hehe
d

daniel

05/24/2023, 11:50 PM
To clarify - just landed a change to master that will go live in our release next week
😀 1
a

Arturo Martínez

05/24/2023, 11:51 PM
great, thank you so much. Daniel
but if I have to_config_dict(), it will continue working also that way, right?
d

daniel

05/24/2023, 11:59 PM
It will, yes
❤️ 1
a

Arturo Martínez

05/25/2023, 12:00 AM
thanks, Daniel!
7 Views