Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Nov 13, 2022
1 parent e53c444 commit 5d1af1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sky/spot/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def _run(self):
# job may not FAILED immediately when part of the nodes are
# preempted.
(cluster_status,
handle) = backend_utils.refresh_cluster_status_handle(
self._cluster_name, force_refresh=True)
handle) = backend_utils.refresh_cluster_status_handle(
self._cluster_name, force_refresh=True)
if cluster_status != global_user_state.ClusterStatus.UP:
# recover the cluster if it is not up.
need_recovery = True
Expand Down
3 changes: 2 additions & 1 deletion sky/spot/spot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ def stream_logs_by_id(job_id: int, follow: bool = True) -> str:
f'(status: {job_status.value}).')
break
logger.info('INFO: (Log streaming) The job is cancelled. Waiting '
'for the controller process to update the status.')
'for the controller process to update the status in '
f'{JOB_STATUS_CHECK_GAP_SECONDS} seconds.')
else:
logger.info(
f'INFO: (Log streaming) Got return code {returncode}. Retrying '
Expand Down

0 comments on commit 5d1af1a

Please sign in to comment.