fix(gateway): request graceful Windows shutdown (#6353)
* fix(gateway): request graceful Windows shutdown * docs(cli): simplify Windows gateway stop guidance * test(gateway): compare native Windows owner SIDs
This commit is contained in:
1 parent
fd30fda8a2
commit
73a55e0b2f
7 files changed
+554
-25
No files matched your search
@@ -980,6 +980,10 @@ def _run_gateway(
|
||||
logger.info("Last local client disappeared; stopping on-demand gateway")
|
||||
|
||||
tasks.extend([
|
||||
asyncio.create_task(
|
||||
gateway_runtime.wait_for_shutdown_request(shutdown_event),
|
||||
name="nanobot-gateway-stop-request",
|
||||
),
|
||||
asyncio.create_task(
|
||||
watch_config_file(
|
||||
Path(config_path),
|
||||
|
||||
Reference in new issue
Block a user