Skip to content

Commit 53884d1

Browse files
authored
fix: Update uptime metrics query and fix node pool exception (#1200)
- In `query_uptime_metrics`, replace `query_time_series` with `list_time_series` to align with the recent `gcloud_util.py` refactoring. - Fix a syntax error in the exception handling within `node_pool_util`.
1 parent dd90f04 commit 53884d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dags/tpu_observability/utils/node_pool_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ def create(
243243
"gcloud container operations list "
244244
f"--project={node_pool.project_id} "
245245
f"--region={node_pool.location} "
246-
f"--format=json(name,status)"
246+
f"--filter='status=RUNNING AND targetLink:{node_pool.node_pool_name}' "
247+
f"--format='json(name,status)'"
247248
)
248249
debug_res = subprocess.run_exec(debug_cmd)
249250

0 commit comments

Comments
 (0)