Skip to content

Multiprocess queue blocked? #1474

Discussion options

You must be logged in to vote

Client instances can't be used across forks, and from a superficial glance it looks like multiprocessing will call get_messages from multiple forked sub-processes.
I would recommend polling messages in the main process and passing their key,payload,topic,partition,offset to the child processes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Diego-Hernandez-Moodys
Comment options

Answer selected by Diego-Hernandez-Moodys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants