From 17787c0adc7eb037b1b78c17609d8e5924c58642 Mon Sep 17 00:00:00 2001 From: Carlo Fuselli Date: Thu, 19 Sep 2024 11:44:35 +0200 Subject: [PATCH] Update hypervisor to work for nuclear timeout We never managed to enter in the tactic nuclear because it was only looking for timeouts. Now we say: it not armed or running, do nuclear ( that means, power cycle the crates ) --- dispatcher/hypervisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispatcher/hypervisor.py b/dispatcher/hypervisor.py index a3df0a53..ea68525a 100644 --- a/dispatcher/hypervisor.py +++ b/dispatcher/hypervisor.py @@ -408,7 +408,7 @@ def linked_nuclear_option(self): ok, not_ok = [], [] physical_status = self.mongo_connect.physical_status for phys_det, statuses in physical_status.items(): - if self.mongo_connect.combine_statuses(statuses) in [daqnt.DAQ_STATUS.TIMEOUT]: + if self.mongo_connect.combine_statuses(statuses) not in [daqnt.DAQ_STATUS.RUNNING, daqnt.DAQ_STATUS.ARMED]: not_ok.append(phys_det) else: ok.append(phys_det)