You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration of producer and consumer instances is performed by
101
126
providing a dict of configuration properties to the instance constructor, e.g.::
102
127
@@ -117,7 +142,7 @@ The Python bindings also provide some additional configuration properties:
117
142
properties that are applied to all used topics for the instance. **DEPRECATED:**
118
143
topic configuration should now be specified in the global top-level configuration.
119
144
120
-
* ``error_cb(kafka.KafkaError)``: Callback for generic/global error events. This callback is served upon calling
145
+
* ``error_cb(kafka.KafkaError)``: Callback for generic/global error events, these errors are typically to be considered informational since the client will automatically try to recover. This callback is served upon calling
121
146
``client.poll()`` or ``producer.flush()``.
122
147
123
148
* ``throttle_cb(confluent_kafka.ThrottleEvent)``: Callback for throttled request reporting.
@@ -138,8 +163,11 @@ The Python bindings also provide some additional configuration properties:
138
163
callback. The ``msg.headers()`` will return None even if the original message
139
164
had headers set. This callback is served upon calling ``producer.poll()`` or ``producer.flush()``.
140
165
141
-
* ``on_commit(kafka.KafkaError, list(kafka.TopicPartition))`` (**Consumer**): Callback used to indicate success or failure
142
-
of asynchronous and automatic commit requests. This callback is served upon calling ``consumer.poll()``. Is not triggered for synchronous commits.
166
+
* ``on_commit(kafka.KafkaError, list(kafka.TopicPartition))`` (**Consumer**): Callback used to indicate
167
+
success or failure of asynchronous and automatic commit requests. This callback is served upon calling
168
+
``consumer.poll()``. Is not triggered for synchronous commits. Callback arguments: *KafkaError* is the
169
+
commit error, or None on success. *list(TopicPartition)* is the list of partitions with their committed
170
+
offsets or per-partition errors.
143
171
144
172
* ``logger=logging.Handler`` kwarg: forward logs from the Kafka client to the
0 commit comments