From 396b970f64e8b7e42b7e0f179ef59c387ee70d3d Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Sat, 2 Nov 2024 23:20:46 -0700 Subject: [PATCH] use tuple unpacking instead of `[1]` Co-authored-by: Tian Xia --- sky/jobs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/jobs/utils.py b/sky/jobs/utils.py index a021443701f..f4aaf049c4a 100644 --- a/sky/jobs/utils.py +++ b/sky/jobs/utils.py @@ -330,7 +330,7 @@ def finish_stream(): This filters out polling logs ('Checking the job status') from utils.py, and ensures we capture the essential setup messages. """ - status = managed_job_state.get_task_id_status(job_id, task_id)[1] + _, status = managed_job_state.get_task_id_status(job_id, task_id) return (status is not None) and (status not in [ managed_job_state.ManagedJobStatus.STARTING, managed_job_state.ManagedJobStatus.RECOVERING,