Python Forum

Full Version: Shared queues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am trying to share a multiprocessing dictionary (Manager().dict()) of multiprocessing Queues (Manager().Queue()) between multiple python instances/processes (keys are strings).

I am running in circles and am always being stopped by something, can someone help me with this?

Thank you!
Please, post your code in python tags, as well as full traceback in error tags if you get any exceptions.
Let me rephrase:
Is it possible to create Manager().dict() of Manager().Queue() values with string as a key, and have it working across multiple instances/processes?
You can put a dict created by manager into the queue, but also a regular dict.
You can't put a queue into a dict.