Add TODO comments

This commit is contained in:
Mahendra M
2013-06-27 17:51:12 +05:30
parent 36b5f81543
commit c2a49c1370

View File

@@ -523,6 +523,8 @@ class MultiProcessConsumer(Consumer):
try:
# We will block for a small while so that the consumers get
# a chance to run and put some messages in the queue
# TODO: This is a hack and will make the consumer block for
# at least one second. Need to find a better way of doing this
partition, message = self.queue.get(block=True, timeout=1)
except Empty:
break