Skip to content

The agent that grows with you

Fix docstrings that still describe off-Fly dormancy

pefontanaae0e3bb12b0c
diff --git a/gateway/run.py b/gateway/run.py
index 1703a379a32..908822ec909 100644
--- a/gateway/run.py
+++ b/gateway/run.py
@@ -8921,8 +8921,9 @@ class GatewayRunner(GatewayAuthorizationMixin, GatewayKanbanWatchersMixin, Gatew
wakes the machine, the preserved reconnect supervisor re-dials, and the
connector drains the buffered backlog. After driving dormant we set a
re-arm cooldown so a wake's drained backlog isn't immediately re-quiesced.
- Off-Fly (no flaps socket / machine identity) the suspend step is skipped:
- dormancy still happens, the process just stays running — fail-awake.
+ Off-Fly (no flaps socket / machine identity) the watcher does not quiesce
+ at all: the platform suspends on its own timer, so the gateway stays
+ connected and serving until the freeze lands.
"""
await asyncio.sleep(min(interval, 30.0)) # let startup settle
while self._running:
diff --git a/gateway/scale_to_zero.py b/gateway/scale_to_zero.py
index 3007c4444c9..65c01515ad5 100644
--- a/gateway/scale_to_zero.py
+++ b/gateway/scale_to_zero.py
@@ -169,8 +169,8 @@ def self_suspend_available(environ: Optional[dict] = None) -> bool:
True iff the Fly-injected machine identity is present AND the local Machines
API socket exists. Off-Fly (local dev, Azure ACA, tests) this is False and
- the watcher simply skips the suspend step — dormancy still happens, the
- platform just never freezes the process.
+ the watcher skips the quiesce entirely: the platform owns the freeze, so
+ the gateway stays connected until it lands.
"""
env = environ if environ is not None else os.environ
return bool(