Identify a job name in case notebook is triggered from another notebook/
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 05:48 PM - edited 12-16-2024 05:49 PM
I am running an another notebook from one of the notebook as below. The main notebook is scheuled with a job/workflow.
dbutils.notebook.run("./ABC/XYZ/another_notebook", 1000)
Usually to get the workflow/job name i use any of the below 2 options.
1. desc history dbw_lakehouse.uat.table_name (if notebook loads to table)
or
2. Through API call
https://adb-URL.2.azuredatabricks.net/api/2.0/jobs/runs/get?run_id=103532871384632
https://adb-URL.2.azuredatabricks.net/api/2.0/jobs/get?job_id=1051355057291376
https://adb-URL.2.azuredatabricks.net/api/2.0/jobs/get?job_id=1051355057291376
But in my scenario where i am calling notebook from extreanl notebook, i am not seeing the job name in any of the option output.
Auy suggesiton?