Closed stevekm closed 4 years ago
example code to use for this is here: https://github.com/stevekm/fastq-bed-subset/blob/6f19f4e71c70776970b487bf673f54df6adae0f1/Makefile#L64
implementing the desired bash trap in a SLURM submission wrapper conflicts with the tee
left open by make run
, preventing the trap from catching the signal correctly.
Need to update the Makefile
submit
recipe to use a bash trap to catchkill
commands and automatically remove the.nextflow.submitted
lock file. Otherwise you have to always remember to delete.nextflow.submitted
every time you usemake kill
which gets annoying