Skip to content
Snippets Groups Projects
Commit 6f0d2f15 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-846: add exception handling in auto-shutdown

parent 0f631602
Branches
Tags
2 merge requests!384Draft: Resolve L2SS-847 "Tango host in stats writer",!374Resolve L2SS-846: add disable_hardware to devices
......@@ -160,8 +160,11 @@ class TemperatureManager(lofar_device):
This function automatically shuts down all hardware devices whenever a temperature alarm is detected
"""
for dev_name in self.Shutdown_Device_List:
try:
proxy = DeviceProxy(dev_name)
proxy.disable_hardware()
except Exception as e:
logger.warning(f"Automatic hardware shutdown of device {dev_name} has failed: {e.args[0]}")
# TODO(Stefano): Add "STAT/PSOC/1" to the shutdown list and develop its behaviour
logger.warning(f"Temperature alarm triggered auto shutdown of all hardware devices")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment