maxRetries
The maxRetries directive defines the maximum number of times a task can be retried when using the retry error strategy.
Usage
For example:
process hello {
errorStrategy 'retry'
maxRetries 3
script:
"""
echo 'do this as that .. '
"""
}
In this example, the run fails if any task executed by hello fails more than three times.
By default, only one retry per task is allowed. However, the run can still fail if the total number of failures for the process exceeds the number allowed by the maxErrors directive.