<?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: Retrieve task name within workflow task (notebook, python)? in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/106552#M1830</link>
    <description>&lt;P&gt;Apologies for responding so late on this. This is exactly what I needed.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 22:51:48 GMT</pubDate>
    <dc:creator>EWhitley</dc:creator>
    <dc:date>2025-01-21T22:51:48Z</dc:date>
    <item>
      <title>Retrieve task name within workflow task (notebook, python)?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/58345#M1137</link>
      <description>&lt;P&gt;Using workflows, is there a way to obtain the task name from within a task?&lt;/P&gt;&lt;P&gt;EX: I have a workflow with a notebook task. From within that notebook task I would like to retrieve the task name so I can use it for a variety of purposes.&lt;/P&gt;&lt;P&gt;Currently, we're requiring users to pass the task name into he task using a task parameter. That works, but is another point of configuration and error-prone.&lt;/P&gt;&lt;P&gt;We'd like to obtain the task name from within the task at runtime.&lt;/P&gt;&lt;P&gt;This was asked in a prior conversation (&lt;A href="https://community.databricks.com/t5/warehousing-analytics/from-within-a-databricks-notebook-how-do-you-get-the-workflow/td-p/37017" target="_blank"&gt;https://community.databricks.com/t5/warehousing-analytics/from-within-a-databricks-notebook-how-do-you-get-the-workflow/td-p/37017&lt;/A&gt;), but not answered.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:35:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/58345#M1137</guid>
      <dc:creator>EWhitley</dc:creator>
      <dc:date>2024-01-24T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve task name within workflow task (notebook, python)?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/58455#M1139</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/71577"&gt;@EWhitley&lt;/a&gt;&amp;nbsp;- could you please try using jobs API -&amp;nbsp;&lt;SPAN&gt;/api/2.1/jobs/get and look for task_key fields to obtain all the task name within a given job.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Reference -&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/jobs/get" target="_blank"&gt;https://docs.databricks.com/api/workspace/jobs/get&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 22:00:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/58455#M1139</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2024-01-25T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve task name within workflow task (notebook, python)?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/75383#M1401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/71577"&gt;@EWhitley&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Would {{task.name}} help in getting the current task name?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/workflows/jobs/parameter-value-references.html" target="_blank"&gt;https://docs.databricks.com/en/workflows/jobs/parameter-value-references.htmlPass context about job runs into job t&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 03:22:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/75383#M1401</guid>
      <dc:creator>ttamas</dc:creator>
      <dc:date>2024-06-22T03:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve task name within workflow task (notebook, python)?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/106552#M1830</link>
      <description>&lt;P&gt;Apologies for responding so late on this. This is exactly what I needed.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 22:51:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/retrieve-task-name-within-workflow-task-notebook-python/m-p/106552#M1830</guid>
      <dc:creator>EWhitley</dc:creator>
      <dc:date>2025-01-21T22:51:48Z</dc:date>
    </item>
  </channel>
</rss>

