Skip to content

Commit 5855c76

Browse files
Merge pull request #296657 from ssabat/master
Added delay clause to ForEach and Until multiple activities iteration
2 parents 3aa2f29 + 7339e9a commit 5855c76

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

articles/data-factory/control-flow-for-each-activity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.reviewer: whhender
88
ms.subservice: orchestration
99
ms.custom: synapse
1010
ms.topic: conceptual
11-
ms.date: 09/26/2024
11+
ms.date: 03/20/2025
1212
---
1313

1414
# ForEach activity in Azure Data Factory and Azure Synapse Analytics
@@ -214,7 +214,7 @@ In the ForEach activity, provide an array to be iterated over for the property *
214214
```
215215

216216
## Iterate over multiple activities
217-
It's possible to iterate over multiple activities (for example: copy and web activities) in a ForEach activity. In this scenario, we recommend that you abstract out multiple activities into a separate pipeline. Then, you can use the [ExecutePipeline activity](control-flow-execute-pipeline-activity.md) in the pipeline with ForEach activity to invoke the separate pipeline with multiple activities.
217+
It's possible to iterate over multiple activities (for example: copy and web activities) in a ForEach activity. In this scenario, we recommend that you abstract out multiple activities into a separate pipeline. Then, you can use the [ExecutePipeline activity](control-flow-execute-pipeline-activity.md) in the pipeline with ForEach activity to invoke the separate pipeline with multiple activities. If you iterate over multiple activities, there is potential delay in exiting the loop because of aggregation and cleanup work performed by the pipeline.
218218

219219

220220
### Syntax

articles/data-factory/control-flow-until-activity.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: makromer
77
ms.reviewer: whhender
88
ms.subservice: orchestration
99
ms.topic: conceptual
10-
ms.date: 09/26/2024
10+
ms.date: 03/20/2025
1111
ms.custom: devx-track-azurepowershell, synapse
1212
---
1313

@@ -29,7 +29,9 @@ To use an Until activity in a pipeline, complete the following steps:
2929

3030
:::image type="content" source="media/control-flow-until-activity/dynamic-content-to-check-variable-value.png" alt-text="Shows the  Add dynamic content  pane with an expression to check a variable for a defined value.":::
3131

32-
2. Define activities that the Until activity executes by selecting the Edit Activities button on the Until activity directly, or by selecting the Activities tab to select it there. A new activities editor pane is displayed where you can add any activities for the Until activity to execute. In this example, a Set Variable activity simply sets the value of the variable referenced in the aforementioned expression to ['done'], so the Until activity's expression will be true the first time it's executed, and the Until activity will stop. In your real-world use, you can check any conditions required and the Until activity will continue to execute its child activities each time the expression is evaluated, until the conditions are met.
32+
2. Define activities that the Until activity executes by selecting the Edit Activities button on the Until activity directly, or by selecting the Activities tab to select it there. A new activities editor pane is displayed where you can add any activities for the Until activity to execute. In this example, a Set Variable activity sets the value of the referenced variable to 'done'. So the Until activity's expression will be true the first time it's executed, and then the Until activity will stop.
33+
You can use similar variables to check any conditions. The Until activity executes its child activities each time the expression is evaluated, until the conditions are met. If you iterate over multiple activities, there's potential delay in exiting the loop because of aggregation and cleanup work performed by the pipeline.
34+
3335

3436
:::image type="content" source="media/control-flow-until-activity/child-activities-editor.png" alt-text="Shows the activities editor for an Until activity with a Set Variable activity defined.":::
3537

@@ -258,7 +260,7 @@ The pipeline sets the **folderPath** to the value of either **outputPath1** or *
258260

259261
[!INCLUDE [updated-for-az](~/reusable-content/ce-skilling/azure/includes/updated-for-az.md)]
260262

261-
These commands assume that you have saved the JSON files into the folder: C:\ADF.
263+
These commands assume that you saved the JSON files into the folder: C:\ADF.
262264

263265
```powershell
264266
Connect-AzAccount

0 commit comments

Comments
 (0)