Skip to content

Commit

Permalink
continue with half full pool when DeadLine reached
Browse files Browse the repository at this point in the history
  • Loading branch information
chexov authored and transformer committed Dec 21, 2010
1 parent 6055729 commit 6eb8f74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions queueit
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ def qwrapperbatch(tube_in, tube_out, worker_cmd, batch_size=10):
LOG.info(u"Timeout reached")
batch_jobs.append(job)
except DeadlineSoon:
LOG.debug(u"Oops. Got DeadlineSoon. Touching reserved jobs..")
LOG.debug(u"Oops. Got DeadlineSoon. Do not waiting for queue to fill up..")
#LOG.debug(u"Oops. Got DeadlineSoon. Touching reserved jobs..")
map(lambda j: j.touch(), batch_jobs)
continue
break
#continue

cmd.extend(map(lambda j: j.body, batch_jobs))

Expand Down

0 comments on commit 6eb8f74

Please sign in to comment.