Closed moellep closed 4 years ago
Not reaped (zombie). With the new job execution system, we'll be able to address this better.
How long does camonitor need to run? Just for the simulation run?
Yes, the camonitor should only run while the softIoc process is running to write the updates to a log file.
Bad code is here:
https://github.com/radiasoft/sirepo/blob/master/sirepo/pkcli/webcon.py#L185
Definitely don't want it grabbing SIGTERM. This should be centrally managed.
The new job exec stuff is coming along nicely and it'll account for this especially on prod. I think it's ok basically the way it is, because softloc has to talk to camonitor so they should be in the same job. We should just make sure they are in the same process group (possibly with a manual fork exec).
job_driver.Local (dev) uses process groups. Docker shuts down the container. Not an issue for now.
The EPICS process isn't getting stopped correctly and after the job is canceled, it remains running on alpha. This problem didn't appear on dev, probably because of the different job runner.
To reproduce, start EPICS on the webcon controls tab and then stop it. check-sirepo-processes.pl shows it remains running in the "canceled" status: