Skip to main content
import { Parallel } from "smithers-orchestrator";

type ParallelProps = {
  id?: string;
  maxConcurrency?: number; // default Infinity
  skipIf?: boolean;
  children?: ReactNode;
};
<Workflow name="checks">
  <Parallel maxConcurrency={2}>
    <Task id="lint" output={outputs.lint}>
      {{ errors: 0 }}
    </Task>
    <Task id="typecheck" output={outputs.typecheck}>
      {{ passed: true }}
    </Task>
    <Task id="test" output={outputs.test}>
      {{ passed: true }}
    </Task>
  </Parallel>
</Workflow>

Notes

  • Group completes when all children finish (or fail, unless continueOnFail).
  • Children receive parallelGroupId and parallelMaxConcurrency in their descriptor.