<?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: Get taskValue from job as task, and then pass it to next task. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81691#M36397</link>
    <description>&lt;P&gt;I see, I have requested for someone else to guide you on this.&lt;/P&gt;
&lt;P&gt;cc:&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Aug 2024 01:16:34 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2024-08-03T01:16:34Z</dc:date>
    <item>
      <title>Get taskValue from job as task, and then pass it to next task.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81296#M36261</link>
      <description>&lt;P&gt;I have workflow like this.&lt;/P&gt;&lt;P&gt;1 task: job as a task. Inside this job there is task which is seting parameter x as taskValue using dbutils.jobs.taskValues.set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. task dependent on previous job as a task. I would like to access this parameter x. I tried to do dynamic job parameter like {{tasks.task1.x}} and then dbutils.widgets.get(x) but this taskValue is not detected in dynamic parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Idea how could I pass this taskValue or make it job parameter?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 11:07:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81296#M36261</guid>
      <dc:creator>CaptainJack</dc:creator>
      <dc:date>2024-07-31T11:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get taskValue from job as task, and then pass it to next task.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81389#M36289</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try dbutils.jobs.taskValues.get()&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/workflows/jobs/share-task-context.html#using-task-values" target="_blank"&gt;https://docs.databricks.com/en/workflows/jobs/share-task-context.html#using-task-values&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 00:11:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81389#M36289</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-08-01T00:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get taskValue from job as task, and then pass it to next task.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81390#M36290</link>
      <description>&lt;P&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/databricks-utils.html#dbutils-jobs-taskvalues-set" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/databricks-utils.html#dbutils-jobs-taskvalues-set&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;dbutils.jobs.taskValues.set(key = 'name', value = 'Some User')&lt;BR /&gt;dbutils.jobs.taskValues.set(key = "age", value = 30)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/databricks-utils.html#get-command-dbutilsjobstaskvaluesget" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/databricks-utils.html#get-command-dbutilsjobstaskvaluesget&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;dbutils.jobs.taskValues.get(taskKey = "my-task", \&lt;BR /&gt;key = "my-key", \&lt;BR /&gt;default = 7, \&lt;BR /&gt;debugValue = 42)&lt;/P&gt;
&lt;P&gt;dbutils.jobs.taskValues.get(taskKey = "my-task", \&lt;BR /&gt;key = "my-key", \&lt;BR /&gt;default = 7, \&lt;BR /&gt;debugValue = 42)&lt;/P&gt;
&lt;P&gt;dbutils.jobs.taskValues.get(taskKey = "my-task", \&lt;BR /&gt;key = "my-key", \&lt;BR /&gt;default = 7, \&lt;BR /&gt;debugValue = 42)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 00:13:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81390#M36290</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-08-01T00:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get taskValue from job as task, and then pass it to next task.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81495#M36331</link>
      <description>&lt;P&gt;I tried this approach and it only works when I am passing value from normal notebook task to another task / job. But when I have "job as task" as source, then it is not working. Maybe I am missing something.&lt;/P&gt;&lt;P&gt;I did experiment with 2 tasks passing parameters to destination task. First task was normal notebook task, second was job as a task and it did not work there.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:04:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81495#M36331</guid>
      <dc:creator>CaptainJack</dc:creator>
      <dc:date>2024-08-01T13:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get taskValue from job as task, and then pass it to next task.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81691#M36397</link>
      <description>&lt;P&gt;I see, I have requested for someone else to guide you on this.&lt;/P&gt;
&lt;P&gt;cc:&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 01:16:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-taskvalue-from-job-as-task-and-then-pass-it-to-next-task/m-p/81691#M36397</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-08-03T01:16:34Z</dc:date>
    </item>
  </channel>
</rss>

