Skip to content

Commit

Permalink
mp pool: Decrease result polling time from 0.2 to 1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Nov 7, 2011
1 parent 4b382db commit 9edf44c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/concurrency/processes/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def on_state_change(task):
debug('result handler starting')
while 1:
try:
ready, task = poll(0.2)
ready, task = poll(1.0)
except (IOError, EOFError), exc:
debug('result handler got %r -- exiting' % (exc, ))
return
Expand All @@ -462,7 +462,7 @@ def on_state_change(task):
time_terminate = None
while cache and self._state != TERMINATE:
try:
ready, task = poll(0.2)
ready, task = poll(1.0)
except (IOError, EOFError), exc:
debug('result handler got %r -- exiting' % (exc, ))
return
Expand Down

0 comments on commit 9edf44c

Please sign in to comment.