oliviercoen
10/23/2025, 1:58 PMerrorStrategy = { ... }
inside your process definitions, they may not be considered by the workflow anymore, although it was still the case a few days ago with the previous versions.
The solution is either to remove the "=" (as it is shown in the official documentation):
errorStrategy { ... }
or to write:
process {
errorStrategy = { ... }
}
inside a config file (as is the case in nf-core conf/base.config file.
You can test that with this small example:
# test.nf
process FOO {
errorStrategy {
if (task.exitStatus == 100) {
return 'ignore'
}
}
script:
"""
exit 100
"""
}
process BAR {
errorStrategy = {
if (task.exitStatus == 100) {
return 'ignore'
}
}
script:
"""
exit 100
"""
}
workflow {
FOO()
BAR()
}
and test it either with:
NXF_VER=25.10.0 nextflow run test.nf
or
NXF_VER=25.04.8 nextflow run test.nf
Hope it will avoid you headaches 🙂
CheersPhil Ewels
10/25/2025, 9:59 PM