Skip to main content

Fail Fast Pipeline

note

Currently, this feature is behind the feature flag: PIPE_FAIL_ALL_FAILURE_STRATEGY. Please contact Harness Support to enable this feature.

In traditional deployments, Harness waits for all steps or stages to complete before determining pipeline status. This can be inefficient when an early failure is enough to trigger rollback.

Harness now supports Fail Fast behavior:

  • If any step or stage in a parallel group fails, the pipeline immediately:
    • Fails without waiting for the remaining steps to complete.
    • Triggers the configured failure strategy, such as pipeline rollback.

This is particularly useful in scenarios where early failures should halt the entire rollout.

Here is a sample YAML for setting up fast fail in your pipeline:

        failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: PipelineRollback
spec:
failAll: true

Adding failAll: true to the failure strategy at stage level will enable fail fast behavior.