<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Databricks API - list job runs doesn't have 'task run id' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/73038#M34633</link>
    <description>&lt;P&gt;Never mind, I have found task_run_id present in getrun api&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/api/azure/workspace/jobs/getrun" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.databricks.com/api/azure/workspace/jobs/getrun&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I overlooked at first instance as it is buried under nested json structure&lt;BR /&gt;tasks[] &amp;gt; run_id.&lt;/P&gt;&lt;P&gt;This clarifies and solves my problem!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 19:39:07 GMT</pubDate>
    <dc:creator>Gaurav19</dc:creator>
    <dc:date>2024-06-12T19:39:07Z</dc:date>
    <item>
      <title>Databricks API - list job runs doesn't have 'task run id'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/72787#M34602</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am calling get job run list API to get all task ids and refer them in dbt-artifacts view created by dbt job run. The question is I can see 'task run id' on screen but it doesn't come back in api response? Is there a way to get it? I checked all the other api's for task_id in it but have no luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gaurav19_0-1718197141799.png" style="width: 757px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8297i2AB366889FE484A4/image-dimensions/757x210/is-moderation-mode/true?v=v2" width="757" height="210" role="button" title="Gaurav19_0-1718197141799.png" alt="Gaurav19_0-1718197141799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 13:02:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/72787#M34602</guid>
      <dc:creator>Gaurav19</dc:creator>
      <dc:date>2024-06-12T13:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks API - list job runs doesn't have 'task run id'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/72788#M34603</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/28708"&gt;@Gaurav19&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I can see in the documentation that&amp;nbsp;&lt;EM&gt;/api/2.1/jobs/runs/list&amp;nbsp;&lt;/EM&gt;contains the &lt;EM&gt;run_id&lt;/EM&gt;.&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/jobs/listruns" target="_blank"&gt;https://docs.databricks.com/api/workspace/jobs/listruns&lt;/A&gt;&lt;BR /&gt;It's hard to tell what is wrong based on screenshot. Could you share some more details?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 13:45:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/72788#M34603</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2024-06-12T13:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks API - list job runs doesn't have 'task run id'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/72802#M34608</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79106"&gt;@daniel_sahal&lt;/a&gt;&amp;nbsp;- thanks for responding!&lt;/P&gt;&lt;P&gt;In the screenshot, you can see "Job ID", "Job run ID" and "Task run ID". I need the third one "Task run ID" - the list API does return run_id as you mentioned, but it is "Job run ID".&lt;/P&gt;&lt;P&gt;to give a context: I need the task id to find which dbt model and test got executed as part of the run - I am executing below query for that to co-relate a job run with model/test execution from dbt-artifacts:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;select * from `hive_metastore`.`cfs_artifacts_src`.`invocations` where invocation_args like '%{task_run_id}%'.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In above table/view I can't find job_run_id anywhere. And it is a bit weird the API is providing one id but not the other - I also tried calling single job run api -&amp;nbsp;&lt;A href="https://docs.databricks.com/api/azure/workspace/jobs/getrun" target="_blank"&gt;https://docs.databricks.com/api/azure/workspace/jobs/getrun&lt;/A&gt;&amp;nbsp;Unfortunately here also I don't see any field which contains 'Task run id'.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jun 2024 15:06:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/72802#M34608</guid>
      <dc:creator>Gaurav19</dc:creator>
      <dc:date>2024-06-12T15:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks API - list job runs doesn't have 'task run id'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/73038#M34633</link>
      <description>&lt;P&gt;Never mind, I have found task_run_id present in getrun api&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/api/azure/workspace/jobs/getrun" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.databricks.com/api/azure/workspace/jobs/getrun&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I overlooked at first instance as it is buried under nested json structure&lt;BR /&gt;tasks[] &amp;gt; run_id.&lt;/P&gt;&lt;P&gt;This clarifies and solves my problem!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 19:39:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-api-list-job-runs-doesn-t-have-task-run-id/m-p/73038#M34633</guid>
      <dc:creator>Gaurav19</dc:creator>
      <dc:date>2024-06-12T19:39:07Z</dc:date>
    </item>
  </channel>
</rss>

