Skip to content

Commit

Permalink
Merge pull request #4336 from hove-io/add_instances_status_update_pro…
Browse files Browse the repository at this point in the history
…perties

add instances status update properties
  • Loading branch information
xlqian authored Dec 25, 2024
2 parents 2955b4d + 11d0c1e commit 43c9627
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 43c9627

Please sign in to comment.