Skip to content

Commit 63209a6

Browse files
committed
Swallow exceptions in state machine run
1 parent 497b0c0 commit 63209a6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

hpc_cluster_manager.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,12 @@ def _check_node_idle_timeout(self, node_names, now=None):
338338

339339
def _start_configure_cluster_timer(self):
340340
# type: () -> ()
341-
self._provision_compute_nodes_state_machine()
342-
self._check_runaway_and_idle_compute_nodes()
343-
self._drain_and_stop_nodes()
341+
try:
342+
self._provision_compute_nodes_state_machine()
343+
self._check_runaway_and_idle_compute_nodes()
344+
self._drain_and_stop_nodes()
345+
except Exception as ex:
346+
self.logger.exception(ex)
344347
timer = threading.Timer(self.CHECK_CONFIGURING_NODES_INTERVAL, self._start_configure_cluster_timer)
345348
timer.daemon = True
346349
timer.start()

0 commit comments

Comments
 (0)