Skip to content

Commit

Permalink
Merge pull request #353 from broadinstitute/sy-jobscript-resources
Browse files Browse the repository at this point in the history
Append UGE resource usage at the end of jobscript.
  • Loading branch information
tomkinsc authored Jun 20, 2016
2 parents e45c1ba + 7f6387c commit 9f7bebd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pipes/Broad_UGER/jobscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@ source "$VENVDIR/bin/activate"
# For this to work, re-run must be set to y via "qsub -r y"
ls "$DATADIR" || exit 99

echo $JOB_ID
echo "=============================="

{exec_job}

# Report resource consumption because it's not reported by default
echo "------------------------------"
qstat -j $JOB_ID | grep '^usage'

# if the job succeeds, snakemake
# touches jobfinished, thus if it exists cat succeeds. if cat fails, the error code indicates job failure
# an error code of 100 is needed since UGER only prevents execution of dependent jobs if the preceding
Expand Down

0 comments on commit 9f7bebd

Please sign in to comment.