When sub-command of a pipe fails, jobs shows as COMPLETED in SLURM and Nextflow continues #3523
-
Bug reportWhen sub-command of a pipe fails, jobs shows as COMPLETED in SLURM and Nextflow continues. Expected behavior and actual behaviorWhen the following seqtk sample input.fastq.gz ${value} | gzip - > output.fastq.gz I was expecting this job to fail and to lead to Nextflow failing as well. Steps to reproduce the problemThe current #!/bin/bash -ue
value=15000000
seqtk sample input.fastq.gz ${value} | gzip - > output.fastq.gz If I add #!/bin/bash -ue
set -o pipefail
value=15000000
seqtk sample input.fastq.gz ${value} | gzip - > output.fastq.gz Do you think it would be possible to add Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can change the shebang of the
For example, add the following to your
Can you try that and tell me if it works? 😄 |
Beta Was this translation helpful? Give feedback.
You can change the shebang of the
.command.sh
with:For example, add the following to your
nextflow.config
:Can you try that and tell me if it works? 😄