Hi! Just a short warning for pipeline maintainers ...
# pipeline-maintainers
o
Hi! Just a short warning for pipeline maintainers concerning the new Nextflow 25.10.0 release. If you have errorStrategy statements like
Copy code
errorStrategy = { ... }
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):
Copy code
errorStrategy { ... }
or to write:
Copy code
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:
Copy code
# 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:
Copy code
NXF_VER=25.10.0 nextflow run test.nf
or
Copy code
NXF_VER=25.04.8 nextflow run test.nf
Hope it will avoid you headaches 🙂 Cheers
😱 1
thanks 1
🙏 3
p
Note that if you turn on strict syntax, then you'll get a lovely error message pointing to the exact character in your code where you need to correct this 😇
❤️ 1