cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

From within a Databricks Notebook, how do you get the workflow and task name

naga_databricks
Contributor

I have a notebook where i want to use the workflow name and task name that it will be running under. How do i access these information?

1 ACCEPTED SOLUTION

Accepted Solutions

BilalAslamDbrx
Databricks Employee
Databricks Employee

Please take a look at these docs, I think they are what you need: https://docs.databricks.com/workflows/jobs/task-parameter-variables.html

View solution in original post

4 REPLIES 4

BilalAslamDbrx
Databricks Employee
Databricks Employee

Please take a look at these docs, I think they are what you need: https://docs.databricks.com/workflows/jobs/task-parameter-variables.html

Thanks. That looks like a promising option to access task level information. Is there a way to access workflow name?

No, we don't include that as it is not a unique or stable identifier. You can query the Jobs API to retrieve it.

Okay. Thanks.

Instead i am now going to use base_parameters on deployment.conf and catch those parameters with dbutils.widget.get()

Connect with Databricks Users in Your Area

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