AG-Schumann / Doberman

Distributed supervisory control, data acquisition, and monitoring software for small- to medium-size experiments
MIT License
0 stars 1 forks source link

Do not set monitor active on failure #241

Closed jarongrigat closed 1 month ago

jarongrigat commented 2 months ago

This causes a very annoying bug, where you 'activate' a device e.g. via the website and it doesn't start properly (i.e. you run into the Exception in line 65/66 of Monitor.py), it makes it impossible to deactivate it again, unless you do it via MongoDB.

With this fix the device just won't activate and together with unmanage_inactive, you can then just unmanage the device once you see it failed to start so it doesn't try to restart it over and over again.