Unable to pass the task variables from Python Wheel to ForEach task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 10:21 PM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 05:11 AM
Hi @Divya_sreeE
you can pass dynamic variables between tasks using Databricks' job parameters.
1) In your first Python wheel task, generate the dynamic variables and use the Databricks REST API to update the job parameters.
2) In the For Each loop, retrieve the dynamic variables and pass them to the second Python wheel task.