check detectors one after the other (should be parallel)

This commit is contained in:
2025-08-28 09:37:13 +02:00
parent 0f7ff5b220
commit 975ed94da6

View File

@@ -167,8 +167,9 @@ class BrokerClient:
if not wait:
return
detector = list(detectors.keys())[0] #TODO
self.wait_for_detector_status(detector, wait_time=wait_time, timeout=timeout)
#TODO: this should be parallel (how to print?) but is serial for now
for d in detectors:
self.wait_for_detector_status(d, wait_time=wait_time, timeout=timeout)
def wait_for_detector_status(self, detector, status="running", wait_time=0.1, timeout=300):