Skip to content

Commit be9d768

Browse files
committed
exit code for unrecoverable snapshots errors
When a pipeline process is in the process of being snapshotted via Fusion Snapshots and encounters an unrecoverable error the Fusion Snapshots runtime emits a specific exit code (175) to signal that to Nextflow. This PR makes sure that users creating pipelines out of the template are including the exit code in their retry strategy.
1 parent d8bfccb commit be9d768

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- run nf-test tests on runsOn runners ([#3525](https://github.com/nf-core/tools/pull/3525))
1414
- Include the centralized nf-core configs also in offline mode, if a local copy is available. ([#3491](https://github.com/nf-core/tools/pull/3491))
1515
- downgrade nf-schema to fix CI tests ([#3544](https://github.com/nf-core/tools/pull/3544))
16+
- Make jobs automatically resubmit for exit code 175 ([#3564](https://github.com/nf-core/tools/pull/3564))
1617

1718
### Linting
1819

nf_core/pipeline-template/conf/base.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ process {
1515
memory = { 6.GB * task.attempt }
1616
time = { 4.h * task.attempt }
1717

18-
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
18+
errorStrategy = { task.exitStatus in ((130..145) + 104 + 175) ? 'retry' : 'finish' }
1919
maxRetries = 1
2020
maxErrors = '-1'
2121

nf_core/pipeline-template/nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ process {
8383
memory = { 6.GB * task.attempt }
8484
time = { 4.h * task.attempt }
8585

86-
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
86+
errorStrategy = { task.exitStatus in ((130..145) + 104 + 175) ? 'retry' : 'finish' }
8787
maxRetries = 1
8888
maxErrors = '-1'
8989
}

0 commit comments

Comments
 (0)