Skip to content

Commit 11d0c1e

Browse files
committed
add instances status update properties
1 parent 2955b4d commit 11d0c1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/jormungandr/jormungandr/interfaces/v1/backends_status.py

+3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ def do(instance_name, pt_planner_type, pt_planner, req):
5151
for pt_planner_type, pt_planner in instance.get_all_pt_planners():
5252
futures.append(pool.spawn(do, instance.name, pt_planner_type, pt_planner, req))
5353

54+
futures.append(pool.spawn(do, instance.name, None, instance, req))
5455
found_err = False
5556
status_code = 200
5657

5758
for future in gevent.iwait(futures):
5859
instance_name, pt_planner_type, status, err = future.get()
60+
if pt_planner_type is None:
61+
continue
5962
found_err |= err is not None
6063
if err:
6164
response['errors'].append(

0 commit comments

Comments
 (0)