You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I use a multiprocessing Queue with concurrent.futures.ProcessPoolExecutor, I'd get
RuntimeError: Queue objects should only be shared between processes through inheritance
such as with this message
Traceback (most recent call last):
File "/home/docker-user/mpservice/tests/experiments/test.py", line 19, in <module>
asyncio.run(main())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/docker-user/mpservice/tests/experiments/test.py", line 14, in main
t.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/multiprocessing/queues.py", line 244, in _feed
obj = _ForkingPickler.dumps(obj)
File "/usr/lib/python3.10/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 58, in __getstate__
context.assert_spawning(self)
File "/usr/lib/python3.10/multiprocessing/context.py", line 373, in assert_spawning
raise RuntimeError(
RuntimeError: Queue objects should only be shared between processes through inheritance
Try to understand this behavior
The text was updated successfully, but these errors were encountered:
if I use a multiprocessing Queue with concurrent.futures.ProcessPoolExecutor, I'd get
RuntimeError: Queue objects should only be shared between processes through inheritance
such as with this message
Try to understand this behavior
The text was updated successfully, but these errors were encountered: