dpkp / dpkp/kafka-python

Add `wakeup` to Consumer as in Java Client

Open
#1,148 3 comments 0 reactions 0 assignees View on GitHub
consumer enhancement
Dominant language
Python
Stars
5.9k
Forks
1.5k
Avg merge
3d 11h
Merged PRs (30d)
3

Description

Java client has [wakeup()](https://kafka.apache.org/0101/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#wakeup()) functions that can be used to break out of a `poll()` and can be called from another thread. It's needed for some unique cases like the process pool processing example, where we have 1 consumer and a pool of workers.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.