Closed kkarrancsu closed 4 years ago
Thank you @kkarrancsu for this PR!
To be sure of what your code is doing: workers will be killed when the ParallelEnv class instance is destroyed by Python at the end of the program?
Yup, exactly!
I reverted your PR because of this issue: https://github.com/lcswillems/rl-starter-files/issues/42
I prefer the version there was before because I never got a problem with it so I am more confident with it.
We ran into some problems when using the ParallelEnv class for some environments, where it seems that workers were not being killed properly. This update simply adds explicit destruction of workers.