diff --git a/sky/backends/cloud_vm_ray_backend.py b/sky/backends/cloud_vm_ray_backend.py index 156c6c48b0f..21bd772637d 100644 --- a/sky/backends/cloud_vm_ray_backend.py +++ b/sky/backends/cloud_vm_ray_backend.py @@ -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.')