summaryrefslogtreecommitdiff
path: root/kafka/consumer/group.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2017-03-13 16:39:53 -0700
committerDana Powers <dana.powers@gmail.com>2017-03-13 16:39:53 -0700
commit92a66e3009147a9909f32df2adedce831b7fc7fb (patch)
tree96c4ce4a8789eacaf284cbef8770d992aa665fa6 /kafka/consumer/group.py
parent195df5fb9895ec78cd5e25eda30cbec201b4ab4f (diff)
downloadkafka-python-92a66e3009147a9909f32df2adedce831b7fc7fb.tar.gz
Additional docstrings for autocommit close option
Diffstat (limited to 'kafka/consumer/group.py')
-rw-r--r--kafka/consumer/group.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py
index 7d451b3..97df7a7 100644
--- a/kafka/consumer/group.py
+++ b/kafka/consumer/group.py
@@ -377,7 +377,13 @@ class KafkaConsumer(six.Iterator):
return self._subscription.assigned_partitions()
def close(self, autocommit=True):
- """Close the consumer, waiting indefinitely for any needed cleanup."""
+ """Close the consumer, waiting indefinitely for any needed cleanup.
+
+ Keyword Arguments:
+ autocommit (bool): If auto-commit is configured for this consumer,
+ this optional flag causes the consumer to attempt to commit any
+ pending consumed offsets prior to close. Default: True
+ """
if self._closed:
return
log.debug("Closing the KafkaConsumer.")