We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccd44ce commit d5c4348Copy full SHA for d5c4348
1 file changed
kafka/producer/kafka.py
@@ -506,6 +506,7 @@ def __getattr__(self, name):
506
assert timeout >= 0
507
508
log.info("Closing the Kafka producer with %s secs timeout.", timeout)
509
+ self.flush(timeout)
510
invoked_from_callback = bool(threading.current_thread() is self._sender)
511
if timeout > 0:
512
if invoked_from_callback:
0 commit comments