Merge branch '2.2' into bugfix/2838

This commit is contained in:
Jeremy Grossmann authored and GitHub committed 2026-07-29 17:55:53 +02:00
commit 668169d1cc
6 files changed
+85 -6

No files matched your search

+1 -1
View File
@@ -869,7 +869,7 @@ class DockerVM(BaseNode):
await self._fix_permissions()
state = await self._get_container_state()
if state != "stopped" or state != "exited":
if state != "stopped" and state != "exited":
# t=5 number of seconds to wait before killing the container
try:
await self.manager.query("POST", "containers/{}/stop".format(self._cid), params={"t": 5})
+6 -3
View File
@@ -917,7 +917,7 @@ class Project:
if self._status != "opened":
try:
await self.open()
await self.open(auto_start=False)
except aiohttp.web.HTTPConflict as e:
# ignore missing images or other conflicts when deleting a project
log.warning(f"Conflict while deleting project: {e}")
@@ -998,9 +998,12 @@ class Project:
return os.path.join(self.path, self._filename)
@locking
async def open(self):
async def open(self, auto_start=True):
"""
Load topology elements
:param auto_start: whether the nodes may be started when the project
has auto start enabled
"""
if self._closing:
@@ -1114,7 +1117,7 @@ class Project:
self._loading = False
self.emit_controller_notification("project.opened", self.__json__())
# Should we start the nodes when project is open
if self._auto_start:
if self._auto_start and auto_start:
# Start all in the background without waiting for completion
# we ignore errors because we want to let the user open
# their project and fix it