diff options
author | Linus Wallgren <linus.wallgren@gmail.com> | 2017-05-18 22:49:20 +0200 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-06-16 23:26:14 -0700 |
commit | 97261f491d02fb7f72ba30abcfc26240f520a9b4 (patch) | |
tree | f01f4d23df893acb4093c2e330730208e6c5e7f3 /kafka | |
parent | 73d78bc76ade2b42abcdea32095d1df930e21c55 (diff) | |
download | kafka-python-97261f491d02fb7f72ba30abcfc26240f520a9b4.tar.gz |
Describe consumer thread-safety
Diffstat (limited to 'kafka')
-rw-r--r-- | kafka/consumer/group.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 7fa5710..15a8947 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -33,6 +33,8 @@ class KafkaConsumer(six.Iterator): to allow multiple consumers to load balance consumption of topics (requires kafka >= 0.9.0.0). + The consumer is not thread safe and should not be shared across threads. + Arguments: *topics (str): optional list of topics to subscribe to. If not set, call :meth:`~kafka.KafkaConsumer.subscribe` or |