Perform a parallel loop

Processes items in parallel using a parallel loop.

Explore further

For detailed documentation that includes this code sample, see the following:

Code sample

YAML

main:
  params: [input]
  steps:
    - sendNotifications:
        parallel:
          for:
            value: notification
            in: ${input.notifications}
            steps:
              - notify:
                  call: http.post
                  args:
                    url: https://example.com/sendNotification
                    body:
                      notification: ${notification}

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.