Closed ethanluoyc closed 3 years ago
Hi Yicheng, please give this change a try. Now lp.lauch() returns back a worker manager, you can call wait() on it to sleep until program is over. Let me know how that works for you.
Please reopen in case of any problems.
Hi Yicheng, please give this change a try. Now lp.lauch() returns back a worker manager, you can call wait() on it to sleep until program is over. Let me know how that works for you.
I can confirm it works for me :)
Hi,
I am currently using LaunchPad for a local distributed RL program. I am using the local multiprocessing backend but would like to have multiple runs of the program in a single process to perform a sweep.
I have the following script (ignoring the details of the agent implementation):
This currently does not work as the LaunchPad program would kill the entire current process tree at exit (at least in my experience when I have a reverb node that never terminates properly and has to be killed with os.kill). This prevents me from performing a sweep in the same process with something like
With the script, the process would return immediately and exit. However, the LP processes will not be shut down and I end up with the agent processes running in the background. In the ideal case, I would love to be able to wait on the LP program to finish and then execute another LP program in the same process with out having to write a shell script to wrap the sweeps.
Thanks!