Skip to content

Feature Request: Parallel Steps in Workflows #302

Closed

Description

Describe the Feature

During cold starts, there are frequently many steps that could be run in parallel, speeding up the provisioning.

Expected Behavior

Support nested blocks of "steps" of type "parallel". When executed, all parallel steps of a step must complete before advancing to the next step.

workflows:
  test-1:
    description: "Test workflow"
    steps:
      - type: parallel
        steps:
        - command: echo Command 1
          name: step1
          type: shell
        - command: echo Command 2
          name: step2
          type: shell

If any step in the parallel execution fails, the next step in the workflow is not run.

Use Case

  1. Cold starts. Bringing up EKS clusters, there are 10-15 services that could be deployed in parallel as they have no dependency on each other.

Activity

  1. jamengual commented on Jan 12, 2023

    @jamengual
    Contributor
  2. cfsb-jrose commented on May 12, 2025

    @cfsb-jrose

    Not sure if this is relevant or not, but one thing that would be amazing if workflows could permit iteration of "like" commands. For example:

      ci-test:
        description: |
          The steps in this workflow are run when a pull request is created or updated.
          This workflow will run the full terraform lifecycle, including cleanup tasks.
        stack: cfsb-it-platform-dev4
        steps:
          - command: terraform clean --force
            components:
            - kms
            - vpc
            - iam
            - ec2
    

    From the above, one could run terraform clean --force for a number of components in a given stack.

  3. osterman commented on Aug 29, 2026

    @osterman
    MemberAuthor

    Resolved by #2635, which added parallel and matrix workflow control steps. Closing — please reopen if this doesn't cover your original use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions