nmdp-bioinformatics / pipeline

Consensus assembly and allele interpretation pipeline.
GNU Lesser General Public License v3.0
7 stars 7 forks source link

BOILERPLATE_HEADER file in process_fastq.bash gets prematurely deleted by first job to finish #70

Closed gturenchalk closed 9 years ago

gturenchalk commented 9 years ago

When running the pipeline in my environment (Red Hat Enterprise Linux Server release 6.5 (Santiago) with 24 CPUs available 49402264k memory), I am running into trouble with the BOILERPLATE_HEADER cleanup step of process_fastq.bash:

process_fastq.bash 160 #begin cleanup 161 rm -f ${BOILERPLATE_HEADER} Here are some debug logging excerpts to illustrate the issue:

---//---

---//---

My guess is that the script is not waiting for the jobs to finish and the cleanup step is being deleted by the first job to finish. Remaining jobs still needing to use the file will have already passed the header creation test point and end up failing to find the header file they are expecting.

janders3-nmdp commented 9 years ago

closing issue, as code above appears to resolve it. please reopen or file a new issue if i am incorrect.