Hello! I’m having a bad time trying to pass some v...
# dagster-plus
a
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
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
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
Just landed a change to make it work without it!
❤️ 1
a
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
To clarify - just landed a change to master that will go live in our release next week
😀 1
a
great, thank you so much. Daniel
but if I have to_config_dict(), it will continue working also that way, right?
d
It will, yes
❤️ 1
a
thanks, Daniel!