Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Apr 3, 2024
1 parent 7d0930d commit 93d56e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sky/clouds/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class Kubernetes(clouds.Cloud):
# Note that this timeout includes time taken by the Kubernetes scheduler
# itself, which can be upto 2-3 seconds.
# For non-autoscaling clusters, we conservatively set this to 10s.
TIMEOUT = skypilot_config.get_nested(['kubernetes', 'provision_timeout'], 10)
TIMEOUT = skypilot_config.get_nested(['kubernetes', 'provision_timeout'],
10)

_DEFAULT_NUM_VCPUS = 2
_DEFAULT_MEMORY_CPU_RATIO = 1
Expand Down
3 changes: 2 additions & 1 deletion sky/provision/kubernetes/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ def _create_pods(region: str, cluster_name_on_cloud: str,
wait_pods.append(jump_pod)
provision_timeout = provider_config['timeout']

wait_str = 'indefinitely' if provision_timeout == 0 else f'for {provision_timeout}s'
wait_str = ('indefinitely' if provision_timeout == 0
else f'for {provision_timeout}s')
logger.debug(f'run_instances: waiting {wait_str} for pods to schedule and '
f'run: {list(wait_pods_dict.keys())}')

Expand Down

0 comments on commit 93d56e3

Please sign in to comment.