Skip to content

Commit

Permalink
Yield None when there's nothing to schedule.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ask Solem committed Nov 17, 2009
1 parent 0e68083 commit 89f4297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/worker/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __iter__(self):
yield 0
else:
heapq.heappush(q, event)
yield 1
yield None

def empty(self):
return not self._queue
Expand Down

0 comments on commit 89f4297

Please sign in to comment.