Cancel tasks if controller cannot be started

This commit is contained in:
grossmj committed 2026-02-16 19:16:06 +08:00
1 parent 28e7c014c8
commit 0a118dc9e7
3 files changed
+20 -3

No files matched your search

+1 -1
View File
@@ -478,7 +478,7 @@ class Compute:
self._connected = False
log.info(f"Connection closed to compute '{self._id}' WebSocket '{ws_url}'")
# Try to reconnect after 1 second if server unavailable only if not during tests (otherwise we create a ressources usage bomb)
# Try to reconnect after 1 second if server unavailable only if not during tests (otherwise we create a resources usage bomb)
from gns3server.api.server import app
if not app.state.exiting and not hasattr(sys, "_called_from_test"):
log.info(f"Reconnecting to compute '{self._id}' WebSocket '{ws_url}'")