From 11d0c1e1f0ff60de6fe48edaf8765951ae5acf9e Mon Sep 17 00:00:00 2001 From: Patrick Qian Date: Tue, 24 Dec 2024 17:52:02 +0100 Subject: [PATCH] add instances status update properties --- .../jormungandr/jormungandr/interfaces/v1/backends_status.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/jormungandr/jormungandr/interfaces/v1/backends_status.py b/source/jormungandr/jormungandr/interfaces/v1/backends_status.py index de86395aab..efcd7e126f 100644 --- a/source/jormungandr/jormungandr/interfaces/v1/backends_status.py +++ b/source/jormungandr/jormungandr/interfaces/v1/backends_status.py @@ -51,11 +51,14 @@ def do(instance_name, pt_planner_type, pt_planner, req): for pt_planner_type, pt_planner in instance.get_all_pt_planners(): futures.append(pool.spawn(do, instance.name, pt_planner_type, pt_planner, req)) + futures.append(pool.spawn(do, instance.name, None, instance, req)) found_err = False status_code = 200 for future in gevent.iwait(futures): instance_name, pt_planner_type, status, err = future.get() + if pt_planner_type is None: + continue found_err |= err is not None if err: response['errors'].append(