cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow parameters

BradSheridan
Valued Contributor

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?

0 REPLIES 0
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.