Skip to content

Commit

Permalink
use tuple unpacking instead of [1]
Browse files Browse the repository at this point in the history
Co-authored-by: Tian Xia <cblmemo@gmail.com>
  • Loading branch information
andylizf and cblmemo authored Nov 3, 2024
1 parent c4b367c commit 396b970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/jobs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 396b970

Please sign in to comment.