Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2021 08:19 AM
Scenario:
I tried to run notebook_primary as a job with same parameters' map. This notebook is orchestrator for notebooks_sec_1, notebooks_sec_2, and notebooks_sec_3 and next. I run them by dbutils.notebook.run(path, timeout, arguments) function.
So how to get in notebook_primary all input parameters become from Job's configuration and pass them to notebooks_sec_... like i.e.:
arg = some_magic_function_gathering_all_actual_input_params()
#
# some iteration on arg
#
nb1 = dbutils.notebook.run('./notebooks_sec_1', 0, arg)
nb2= dbutils.notebook.run('./notebooks_sec_2', 0, arg)
nb3 = dbutils.notebook.run('./notebooks_sec_3', 0, arg)
Now I can't iterate through input params, I can get value when I know name of the parameter.
Thank you in advance for any advice.
Labels:
- Labels:
-
Dbutils.notebook.run
-
Notebook
-
Python