Skip to main content

maxErrors

The maxErrors directive defines the maximum number of task failures allowed for a process when using the retry error strategy.

Usage

For example:

process hello {
errorStrategy 'retry'
maxErrors 5

script:
"""
echo 'do this as that .. '
"""
}

In this example, the run fails if the hello process accrues more than 5 failures across all of its task executions.

By default, the number of task failures is unlimited. However, the run can still fail if an individual task exceeds the number of retries allowed by the maxRetries directive.

See also

On this Page