11-11-2022 09:09 AM
I want to be able to denote the type of run from a predetermined list of values that a user can choose from when kicking off a run using different parameters. Our team does standardized job runs on a weekly cadence but can have timeframes that changed depending on the month or if it is a one off run to test. I am wanting to change the behavior of the run depending on the type of run it is and want to have users choose from a list to reduce errors like misspellings. Is there a good option to do this inside of the job itself, rather than a notebook?
12-03-2022 02:30 AM
Hi @Coleman Milligan
Checking the old unanswered questions and stumbled across this.
You can do that using the databricks widgets.
dbutils.widgets.dropdown("state", "CA", ["CA", "IL", "MI", "NY", "OR", "VA"])
If this widget is not helping you in passing parameters, you can do a try catch in all the notebooks to check if the parameter value you are passing is actually in the list of strings you have.
Hope this helps.
Cheers.
12-07-2022 09:31 AM
Hi @Uma Maheswara Rao Desula , thank you for the reply.
I'm actually wondering if there is a way to do this within the job ui using the 'run with different parameters' functionality.
It would be the environment key that I'm wanting to restrict user inputs into a predetermined list.
04-05-2024 04:04 AM
Hi @cmilligan , I have a similar requirement and would really be grateful if you could provide me with any information on how to fix this issue. Thanks a lot!
12-11-2024 10:23 AM
I'm looking to this too. Wonder if there a way to make as a drop down for a job parameter
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group