<?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: Is there a way to discover in the next task if the previous for loop task has some... in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129148#M48450</link>
    <description>&lt;P&gt;Easiest way is to log each loop’s status with `dbutils.jobs.taskValues.set` then just grab those in the next task and only work with the ones that passed.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 15:33:32 GMT</pubDate>
    <dc:creator>SebastianRowan</dc:creator>
    <dc:date>2025-08-21T15:33:32Z</dc:date>
    <item>
      <title>Is there a way to discover in the next task if the previous for loop task has some...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129121#M48438</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi community,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As the title suggests, I'm looking for a smart way to determine which runs in a &lt;STRONG&gt;for-loop task&lt;/STRONG&gt; succeeded and which didn’t, so I can use that information in the next task.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Summary:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a for-loop task that runs multiple items (e.g., run1, run2, run3). Suppose only two of them succeed. In the next task, I want to process only the successful runs (e.g., run2).&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 10:40:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129121#M48438</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-08-21T10:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to discover in the next task if the previous for loop task has some...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129124#M48439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133094"&gt;@jeremy98&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Maybe you can use Jobs API 2.2 for that scenario and based on returned payload orchestrate your pipeline?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/aws/en/reference/jobs-api-2-2-updates#get-a-single-run" target="_blank"&gt;Updating from Jobs API 2.1 to 2.2 | Databricks Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 11:03:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129124#M48439</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-08-21T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to discover in the next task if the previous for loop task has some...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129126#M48440</link>
      <description>&lt;P&gt;Oki, I was thinking about this solution.. thanks!&lt;BR /&gt;&lt;BR /&gt;What about the token to generate to make this api call. We're using the service principal how to generate a sas token everytime we need to make this api call?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 11:10:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129126#M48440</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-08-21T11:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to discover in the next task if the previous for loop task has some...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129128#M48442</link>
      <description>&lt;P&gt;It depenends a bit of what type of service principal are you using?&amp;nbsp;Service principals can either be Azure Databricks managed service principals or Microsoft Entra ID managed service principals.&lt;BR /&gt;Azure Databricks managed service principals can authenticate to Azure Databricks using Databricks OAuth authentication and personal access tokens. Microsoft Entra ID managed service principals can authenticate to Azure Databricks using Databricks OAuth authentication and Microsoft Entra ID tokens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 11:16:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129128#M48442</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-08-21T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to discover in the next task if the previous for loop task has some...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129134#M48445</link>
      <description>&lt;P&gt;We have:&amp;nbsp;&lt;SPAN&gt;Microsoft Entra ID managed service principals. That then we link them on databricks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 12:46:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129134#M48445</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-08-21T12:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to discover in the next task if the previous for loop task has some...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129148#M48450</link>
      <description>&lt;P&gt;Easiest way is to log each loop’s status with `dbutils.jobs.taskValues.set` then just grab those in the next task and only work with the ones that passed.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 15:33:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129148#M48450</guid>
      <dc:creator>SebastianRowan</dc:creator>
      <dc:date>2025-08-21T15:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to discover in the next task if the previous for loop task has some...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129151#M48451</link>
      <description>&lt;P&gt;Hi, thanks for your answer! But this couldn't cause some problems on API limits? Because sometimes we are iterating over 100 inputs.&lt;BR /&gt;&lt;BR /&gt;And how do you set the key and value? And how to retrieve them in the next task in batch?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 16:13:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-discover-in-the-next-task-if-the-previous-for/m-p/129151#M48451</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-08-21T16:13:22Z</dc:date>
    </item>
  </channel>
</rss>

