Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Jul 3, 2024
1 parent a85f194 commit d1c60e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sky/provision/cudo/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,10 @@ def terminate_instances(
del provider_config
instances = _filter_instances(cluster_name_on_cloud, None)
for inst_id, inst in instances.items():
logger.info(f'Terminating instance {inst_id}.'
f'{inst}')
if worker_only and inst['name'].endswith('-head'):
continue
logger.info(f'Removing {inst_id}: {inst}')
logger.debug(f'Terminating Cudo instance {inst_id}.'
f'{inst}')
cudo_wrapper.remove(inst_id)


Expand Down

0 comments on commit d1c60e4

Please sign in to comment.