Workflow - How to find the task id at run time in current notebook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 07:29 AM
There are four tasks in the workflow. How can I get the task ID at the beginning of the notebook, store it after finishing all the code cells in the notebook, and then save it into a table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 07:55 AM
Hi @rameshybr ,
You can use dynamic value references, specifically
{{task.run_id}} | The unique identifier of the current task run. |
Pass context about job runs into job tasks | Databricks on AWS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 09:34 PM
How to use in note book cell ?
can you please describe in details pls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 11:09 PM
Hi @rameshybr,
You can capture these as parameters in the task configuration.
And from within the notebook you could use the widget utils to get their values.

