Skip to content

Commit

Permalink
perf: monitor closes team request slowly (#1393)
Browse files Browse the repository at this point in the history
Co-authored-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail and 张启航 authored Sep 4, 2023
1 parent e6e0959 commit 058932a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions console/services/group_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,11 @@ def get_region_app_statuses(tenant_name, region_name, app_ids):
region_app_ids.append(region_app.region_app_id)
app_id_rels[region_app.app_id] = region_app.region_app_id
# Get the status of cluster application
resp = region_api.list_app_statuses_by_app_ids(tenant_name, region_name, {"app_ids": region_app_ids})
app_statuses = resp.get("list", [])
try:
resp = region_api.list_app_statuses_by_app_ids(tenant_name, region_name, {"app_ids": region_app_ids})
app_statuses = resp.get("list", [])
except Exception:
app_statuses = list()
if not app_statuses:
app_statuses = list()
# The relationship between cluster application ID and state
Expand Down

0 comments on commit 058932a

Please sign in to comment.