change terminate to shutdown to accomadate deallocate

This commit is contained in:
nidhi0622 2024-03-18 13:08:38 -05:00
Родитель c992a3dfe1
Коммит b46f9e61d6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -819,7 +819,7 @@ class CycleCloudProvider:
if machines_to_terminate:
logger.warning("Re-attempting termination of nodes %s", machines_to_terminate)
try:
self.cluster.terminate(machines_to_terminate)
self.cluster.shutdown(machines_to_terminate)
except Exception:
# Send HF request status as running so it remembers the request
logger.exception("Could not terminate machines %s due to an exception, reported status as running", machines_to_terminate)