Правки control_plane

This commit is contained in:
2026-03-09 19:00:42 +03:00
parent d88dc6f90c
commit 74fb7db021

View File

@@ -47,7 +47,7 @@ class RuntimeManager:
self.configuration.add_provider(provider)
return provider
def start(self) -> None:
def start(self, *, start_control_plane: bool = True) -> None:
if self._started:
return
self._state = LifecycleState.STARTING
@@ -56,6 +56,7 @@ class RuntimeManager:
self._register_health_contributors()
self._register_workers()
self.workers.start()
if start_control_plane:
self.control_plane.start(self)
self._started = True
self._refresh_state()
@@ -84,7 +85,7 @@ class RuntimeManager:
async def start_runtime(self) -> str:
if self._started:
return "runtime already running"
self.start()
self.start(start_control_plane=False)
return "runtime started"
async def stop_runtime(self) -> str: