diff options
author | Mahendra M <mahendra.m@gmail.com> | 2013-06-25 18:17:39 +0530 |
---|---|---|
committer | Mahendra M <mahendra.m@gmail.com> | 2013-06-25 18:17:39 +0530 |
commit | 65c8eb1f9f3a309f924cf469abb16af98bbe5d6d (patch) | |
tree | b116b9c287b7e6ef49ef93bf5ffb11178ee1f6eb /kafka/client.py | |
parent | 99da57f98a65a457481dcf5c1edcca95dfd464a5 (diff) | |
download | kafka-python-65c8eb1f9f3a309f924cf469abb16af98bbe5d6d.tar.gz |
Got MultiProcessConsumer working
Other changes
* Put a message size restriction on the shared queue
- to prevent message overload
* Wait for a while after each process is started (in constructor)
* Wait for a while in each child if the consumer does not return any messages
Just to be nice to the CPU.
* Control the start event more granularly - this prevents infinite loops
if the control does not return to the generator. For eg:
for msg in consumer:
assert False
* Update message status before yield
Diffstat (limited to 'kafka/client.py')
0 files changed, 0 insertions, 0 deletions