<?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 Unable to pass the task variables from Python Wheel to ForEach task in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-pass-the-task-variables-from-python-wheel-to-foreach/m-p/106752#M42573</link>
    <description>&lt;P&gt;I understand that task variables are supported in Databricks notebook , but there is a requirement from client to use python wheel package in Databricks workflow . We are not able to set the task variables using dbutils in python wheel file. Kindly suggest other alternatives to pass dynamic variables from the first python wheel task and use these variables in For Each as input.(Inside For each we have a 2nd python wheel task)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 06:21:04 GMT</pubDate>
    <dc:creator>Divya_sreeE</dc:creator>
    <dc:date>2025-01-23T06:21:04Z</dc:date>
    <item>
      <title>Unable to pass the task variables from Python Wheel to ForEach task</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-pass-the-task-variables-from-python-wheel-to-foreach/m-p/106752#M42573</link>
      <description>&lt;P&gt;I understand that task variables are supported in Databricks notebook , but there is a requirement from client to use python wheel package in Databricks workflow . We are not able to set the task variables using dbutils in python wheel file. Kindly suggest other alternatives to pass dynamic variables from the first python wheel task and use these variables in For Each as input.(Inside For each we have a 2nd python wheel task)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 06:21:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-pass-the-task-variables-from-python-wheel-to-foreach/m-p/106752#M42573</guid>
      <dc:creator>Divya_sreeE</dc:creator>
      <dc:date>2025-01-23T06:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to pass the task variables from Python Wheel to ForEach task</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-pass-the-task-variables-from-python-wheel-to-foreach/m-p/106908#M42634</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145495"&gt;@Divya_sreeE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you can pass dynamic variables between tasks using Databricks' job parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1)&amp;nbsp;In your first Python wheel task, generate the dynamic variables and use the Databricks REST API to update the job parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2)&amp;nbsp;In the For Each loop, retrieve the dynamic variables and pass them to the second Python wheel task.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;# Retrieve dynamic variables from job parameters&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dynamic_variable&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getenv&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"DYNAMIC_VARIABLE"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Jan 2025 13:11:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-pass-the-task-variables-from-python-wheel-to-foreach/m-p/106908#M42634</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2025-01-24T13:11:52Z</dc:date>
    </item>
  </channel>
</rss>

