Loop Operations

Modified on Thu, 30 Jan, 2025 at 12:12 AM

When managing multiple cloud resources (such as EC2 instances or RDS databases), you'll frequently need to execute operations or perform calculations across the entire collection. The Loop functionality provides an efficient solution for these scenarios.



Working with Loops

The Loop step enables systematic iteration through resource collections to execute specified operations on each item.


Loop Configuration Guidelines

  1. Integrate Loop Step Implementation
    • Add the Loop component to your existing workflow structure using the (+)
  2. Configure Parallel Execution Parameters
    • Default configuration allows 50 concurrent executions
    • This setting represents industry-standard best practices for optimal performance
  3. Define OptionalLoop Parameters 
    • Sequential Processing Option
      • Enable sequential execution mode
      • Processes iterations one at a time instead of parallel execution
      • Suitable for operations requiring strict orderingPercentage-Based Fault Tolerance
    • Specify the acceptable percentage of failed iterations
      • Set to 100% to complete all parallel iterations regardless of failures
      • Set to 0% to terminate workflow upon first failure
      • Helps manage execution reliability and error handling
    • Absolute Fault Tolerance Threshold
      • Define specific number of acceptable iteration failures
      • Particularly useful when total iteration count is known
      • Enables precise control over failure thresholds
      • Allows for granular management of execution reliability


This configuration framework provides comprehensive control over loop execution behavior while maintaining operational efficiency and error management capabilities.


Note
When implementing parallel executions, carefully consider service-specific API rate limits. CloudWatch, for instance, enforces restrictions on concurrent API calls




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article