perf: change secret filter

This commit is contained in:
feng
2025-03-18 13:25:54 +08:00
committed by feng626
parent ed95a89a77
commit 7bd03c7863
2 changed files with 14 additions and 1 deletions

View File

@@ -152,7 +152,10 @@ class ChangeSecretDashboardApi(APIView):
if ongoing_counts is None:
execution_ids = []
inspect = app.control.inspect()
active_tasks = inspect.active()
try:
active_tasks = inspect.active()
except Exception:
active_tasks = None
if active_tasks:
for tasks in active_tasks.values():
for task in tasks: