From 7277d526e3afe6519a653635811ba183a46a8b49 Mon Sep 17 00:00:00 2001 From: John Fleming <31658656+spikefishjohn@users.noreply.github.com> Date: Mon, 18 Jul 2022 18:43:57 -0400 Subject: [PATCH] Update compute.py Remove check for open project. Without this check a remote can be rebooted and will be usable once the main server polls it again. Without this the main server would need to open a project that already uses the remote server or restart the main server's gns3 process. --- gns3server/controller/compute.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index 2ea049a5..bf69b863 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -367,9 +367,6 @@ class Compute: log.warning("Cannot connect to compute '{}': {}".format(self._id, e)) # Try to reconnect after 5 seconds if server unavailable only if not during tests (otherwise we create a ressource usage bomb) if not hasattr(sys, "_called_from_test") or not sys._called_from_test: - if self.id != "local" and self.id != "vm" and not self._controller.compute_has_open_project(self): - log.warning("Not reconnecting to compute '{}' because there is no project opened on it".format(self._id)) - return self._connection_failure += 1 # After 5 failure we close the project using the compute to avoid sync issues if self._connection_failure == 10: