Hello,
I’m attempting to restart Launcher/Workers/Pulse from inside itself and it’s not going well I’m not completely surprised, so perhaps I’m approaching things wrong.
Basically, I have custom OnHouseCleaning and PostJob events that work well, I’m delighted with the event infrastructure.
The challenge I’m having is when we update our custom software, the Python Path must change. We’re on Windows fwiw.
I can easily update the additional PythonPaths using the deadlinecommand, that works well. However, the only way I can get the custom events to actually use the new code (i.e. the new path) is to restart Launcher/Pulse/Workers. If there is another way, please let me know!
Otherwise, I was attempting to submit a job that would (effectively) run “deadlinelauncher -shutdownall” then re-run it.
This is backgrounded ( p = subprocess.Popen(cmd, close_fds=True, creationflags=0x00000008) etc) and does run, and in fact, shuts down the Workers successfully. It fails to shut down Pulse or the Launcher however.
I’m pretty new to Deadline so apologies if I’ve missed something obvious, I have been scouring the docs for a few days though.
10.1.20.3 Win 10 x64
Cheers,
Peter B (Epic Games)