Workflow parameters
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 10:30 AM
Hey everyone! I'm close but can't seem to figure this out. I'm trying to add 2 notebooks to a Databricks Job. Instead of the first command in both notebooks being a connection to an RDS/Redshift cluster, I'd prefer to make that connection once and have it shared across both notebooks without using the %run command (I'd rather see both notebooks as tasks in my job/workflow)
thanks!
Brad
UPDATE: I set 2 parameters at the Job level and in each notebook, I just added: myvariablename = dbutils.widgets.get("param1name") and then the same myvariablename2 = dbutils.widgets.get("param2name"). BUT is there a better/best practice way of doing this?
Labels:
- Labels:
-
Databricks Job