- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 09:25 AM
I have a notebook that sets up parameters for the run based on some job parameters set by the user as well as the current date of the run. I want to supersede some of this logic and just use the manual values if kicked off manually. Is there a way to pass through if a job was kicked off manually or scheduled?
- Labels:
-
Job
-
Job Parameters
-
Pass
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 09:32 AM
Hi @Coleman Milligan ,
One way to try would be to use widgets in the notebooks you are using setting the widget.get default values to be your job parameters. If you are running the job manually, whatever parameters you provide to the job manually would be taken and used.
Hope my understanding of your requirement was clear.
Cheers..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 12:33 PM
You can create widgets by using this- dbutils.widgets.text("widgetName", "")
To get the value for that widget:- dbutils.widgets.get("widgetName")
So by using this you can manually create widgets (variable) and can run the process by giving desired value.
If you want to take the value of widgets from the job parameter then you can also do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 11:07 AM
Can we set widget.text in one task notebook and another task notebook can get that value in workflow job ?