<?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: Workflow - How to find the task id at run time in current notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/83162#M36858</link>
    <description>&lt;P&gt;How to use in note book cell ?&lt;/P&gt;&lt;P&gt;can you please describe in details pls.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 04:34:51 GMT</pubDate>
    <dc:creator>rameshybr</dc:creator>
    <dc:date>2024-08-16T04:34:51Z</dc:date>
    <item>
      <title>Workflow - How to find the task id at run time in current notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/82988#M36801</link>
      <description>&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 14:29:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/82988#M36801</guid>
      <dc:creator>rameshybr</dc:creator>
      <dc:date>2024-08-14T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow - How to find the task id at run time in current notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/82992#M36803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115833"&gt;@rameshybr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;dynamic value references, specifically&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN class=""&gt;{{task.run_id}}&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The unique identifier of the current task run.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/jobs/parameter-value-references.html" target="_blank" rel="noopener"&gt;Pass context about job runs into job tasks | Databricks on AWS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 14:55:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/82992#M36803</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-08-14T14:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow - How to find the task id at run time in current notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/83162#M36858</link>
      <description>&lt;P&gt;How to use in note book cell ?&lt;/P&gt;&lt;P&gt;can you please describe in details pls.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 04:34:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/83162#M36858</guid>
      <dc:creator>rameshybr</dc:creator>
      <dc:date>2024-08-16T04:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow - How to find the task id at run time in current notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/83342#M36910</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115833"&gt;@rameshybr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can capture these as parameters in the task configuration.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="menotron_1-1723960911058.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10401i1748CF57A6F4637D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="menotron_1-1723960911058.png" alt="menotron_1-1723960911058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And from within the notebook you could use the widget utils to get their values.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="menotron_2-1723961287481.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10402iFF523F4F4B5E7708/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="menotron_2-1723961287481.png" alt="menotron_2-1723961287481.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 06:09:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-how-to-find-the-task-id-at-run-time-in-current-notebook/m-p/83342#M36910</guid>
      <dc:creator>menotron</dc:creator>
      <dc:date>2024-08-18T06:09:09Z</dc:date>
    </item>
  </channel>
</rss>

