Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example file (example.py) uses process instead of thread #1563

Closed
pengnam opened this issue Aug 1, 2018 · 2 comments · Fixed by #2081
Closed

Example file (example.py) uses process instead of thread #1563

pengnam opened this issue Aug 1, 2018 · 2 comments · Fixed by #2081

Comments

@pengnam
Copy link

pengnam commented Aug 1, 2018

(https://github.com/dpkp/kafka-python/blob/master/example.py)

Consumer is a subclass of multiprocessing.Process.

The print statement in the run function will never print to the terminal as processes shares a different memory space.

@dpkp
Copy link
Owner

dpkp commented Nov 23, 2018

PRs welcome!

@jeffwidman
Copy link
Collaborator

nudge @pengnam you interested in submitting a PR? Should be a simple change...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants