Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Oct 1, 2024
1 parent 6967484 commit 8489efe
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions sky/backends/cloud_vm_ray_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2807,21 +2807,18 @@ def _provision(
# Sleep and retry.
gap_seconds = backoff.current_backoff()
plural = 's' if attempt_cnt > 1 else ''
logger.info('\n' +
ux_utils.retry_message(
f'Retry after {gap_seconds:.0f}s '
f'({attempt_cnt} attempt{plural}). '
f'{ux_utils.log_path_hint(log_path)}'
f'{colorama.Style.RESET_ALL}'
))
logger.info('\n' + ux_utils.retry_message(
f'Retry after {gap_seconds:.0f}s '
f'({attempt_cnt} attempt{plural}). '
f'{ux_utils.log_path_hint(log_path)}'
f'{colorama.Style.RESET_ALL}'))
attempt_cnt += 1
time.sleep(gap_seconds)
continue
logger.error(
f'{colorama.Fore.RED}{colorama.Style.RESET_ALL} '
'Failed to provision resources. '
f'{ux_utils.log_path_hint(log_path)}'
)
f'{ux_utils.log_path_hint(log_path)}')
error_message += (
'\nTo keep retrying until the cluster is up, use '
'the `--retry-until-up` flag.')
Expand Down

0 comments on commit 8489efe

Please sign in to comment.