Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com/mbreese/qtask
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreese committed Mar 7, 2014
2 parents dacc85b + f585efd commit 06c2bc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qtask/sge.py
Expand Up @@ -120,9 +120,11 @@ def qsub(self, task, monitor, dryrun=False):

src += ' exit $RETVAL\n'
src += 'else\n'
src += ' # wait for SGE to kill the job for accounting purposes\n'
src += ' while [ 1 ]; do\n'
src += ' # wait for SGE to kill the job for accounting purposes (max 120 sec)\n'
src += ' I=0\n'
src += ' while [ $I -lt 120 ]; do\n'
src += ' sleep 1\n'
src += ' let "I=$I+1"\n'
src += ' done\n'
src += 'fi'

Expand Down

0 comments on commit 06c2bc1

Please sign in to comment.