Have a somewhat complex issue that hinges around the distributed message passing as in this pastebin file:
https://paste.pythondiscord.com/DIRA
I got the following traceback when using the above code:
https://paste.pythondiscord.com/CF4Q
Outline:
- The context is vectorized reinforcement learning using SB3
- I am modifying their implementation of a class called SubprocVecEnv
- The original implementation used
multiprocessing - I'm trying to use
billiardto get better memory control of the child proccesses - Each environment in the vectorized environment has a communication pipe to the parent process that manages the overall state of the training process
Previous implementation generated ctx.Processes in the start_worker method, and this worked. My motivation is to get more control over the resource allocation of these processes, either using Billiard, Celery's prefork worker model, or something else.