Browse Source

Yield None when there's nothing to schedule.

Ask Solem 15 years ago
parent
commit
89f429738e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/worker/scheduler.py

+ 1 - 1
celery/worker/scheduler.py

@@ -39,7 +39,7 @@ class Scheduler(object):
                         yield 0
                     else:
                         heapq.heappush(q, event)
-            yield 1
+            yield None
 
     def empty(self):
         return not self._queue