Harry Yao
72b4469d72
perf(host): open daemon readiness polls tight, then back off ( #5190 )
...
The host-online, runner-online and Claude-terminal-ready waits all polled
on a flat 0.5s cadence. Those waits gate every native-harness launch and
usually resolve on the first probe or two — a warm host is already online,
a fresh runner connects in a second or two — so a flat cadence spends up
to a full interval doing nothing after the thing is already ready.
Replace the fixed sleep with `daemon_poll_intervals()`: open at 0.1s, grow
geometrically, hold at the existing 0.5s for the long tail. Fast launches
notice readiness sooner without a long wait hammering the server.
`DAEMON_POLL_INTERVAL_S` keeps its name and value as the steady-state cap,
so `connect.py`'s runner-exit watcher still matches it; its comment now
notes the client's opening probes are tighter.
Signed-off-by: harry-yao_data <harry.yao@databricks.com >
Co-authored-by: harry-yao_data <harry.yao@databricks.com >
Co-authored-by: Isaac <no-reply@databricks.com >
2026-08-22 09:21:41 +00:00
..
2026-07-03 01:33:02 +09:00
2026-06-22 21:50:20 -07:00
2026-08-15 12:16:06 +00:00
2026-08-20 19:14:41 -07:00
2026-06-14 00:40:31 +05:30
2026-08-13 18:00:38 -07:00
2026-08-21 16:22:23 -04:00
2026-08-19 11:27:43 -07:00
2026-08-06 18:11:44 +08:00
2026-08-21 23:00:36 -07:00
2026-08-13 18:00:38 -07:00
2026-08-21 23:07:02 -07:00
2026-08-10 21:49:46 +00:00
2026-06-13 00:37:34 +00:00
2026-08-11 19:40:01 +08:00
2026-08-15 00:00:14 +00:00
2026-07-17 11:29:06 +08:00
2026-08-12 03:05:21 +00:00
2026-08-22 09:21:41 +00:00
2026-08-21 20:52:14 +00:00
2026-06-22 21:50:20 -07:00
2026-08-12 14:24:13 -07:00
2026-08-03 10:29:45 -07:00
2026-08-20 09:50:55 -07:00
2026-08-07 17:36:52 +00:00
2026-08-12 17:52:11 -07:00
2026-07-31 09:32:32 -07:00
2026-08-21 20:52:14 +00:00
2026-08-21 12:35:22 -07:00
2026-06-13 00:37:34 +00:00
2026-08-03 15:41:16 -07:00
2026-08-21 23:07:02 -07:00
2026-08-20 14:57:57 -07:00
2026-08-20 16:24:23 -07:00
2026-08-20 17:30:55 -07:00
2026-07-16 19:14:12 -07:00
2026-08-20 11:00:31 -07:00
2026-06-13 00:37:34 +00:00
2026-08-12 14:24:13 -07:00
2026-06-13 00:37:34 +00:00
2026-06-13 00:37:34 +00:00
2026-08-21 23:00:36 -07:00
2026-06-17 23:50:36 -07:00
2026-08-20 15:37:02 +00:00
2026-08-07 20:06:01 -07:00
2026-06-24 19:53:32 +00:00
2026-08-11 19:40:01 +08:00
2026-07-31 01:06:54 +00:00
2026-06-24 19:53:32 +00:00
2026-08-14 10:42:43 -07:00
2026-08-11 19:40:01 +08:00
2026-08-11 19:40:01 +08:00
2026-08-11 19:40:01 +08:00
2026-06-18 11:34:52 -07:00
2026-06-28 14:46:08 -07:00
2026-08-20 16:24:23 -07:00
2026-08-20 23:14:53 -07:00
2026-08-12 07:19:14 +00:00
2026-08-20 23:14:53 -07:00
2026-08-13 13:11:46 -07:00
2026-08-13 13:11:46 -07:00
2026-08-05 15:34:54 -07:00
2026-06-13 00:37:34 +00:00
2026-08-11 07:45:14 +00:00
2026-08-13 13:11:46 -07:00
2026-08-21 00:47:49 -07:00
2026-07-31 05:04:37 +00:00
2026-08-06 17:53:04 -07:00
2026-08-20 16:24:23 -07:00
2026-08-20 16:24:23 -07:00
2026-08-20 14:07:36 +08:00
2026-08-06 17:53:04 -07:00
2026-06-25 22:23:44 +07:00
2026-06-13 00:37:34 +00:00
2026-08-20 16:40:52 -07:00
2026-07-20 15:20:38 -07:00
2026-08-12 21:06:44 -07:00
2026-07-31 12:02:08 +07:00
2026-06-26 17:29:34 +09:00
2026-07-27 16:48:10 -07:00
2026-07-02 23:55:04 +07:00
2026-07-13 18:45:25 +08:00
2026-07-31 12:02:08 +07:00
2026-08-21 23:00:36 -07:00
2026-08-18 04:32:05 +00:00
2026-08-03 16:07:23 +08:00
2026-07-27 10:19:38 +00:00
2026-06-18 02:18:05 +08:00
2026-06-13 00:37:34 +00:00
2026-08-11 03:19:09 +00:00
2026-07-14 11:57:06 -07:00
2026-07-14 22:19:29 +00:00
2026-06-24 17:01:15 -07:00
2026-07-30 09:25:37 +00:00
2026-06-30 00:29:29 -07:00
2026-08-10 15:24:56 -07:00
2026-07-29 09:26:49 +00:00
2026-08-05 11:43:21 -07:00
2026-07-31 04:24:32 +00:00
2026-07-29 15:08:43 +00:00
2026-08-12 21:06:44 -07:00
2026-06-24 17:01:15 -07:00
2026-07-08 05:32:05 +00:00
2026-08-01 10:35:31 +00:00
2026-06-13 00:37:34 +00:00
2026-06-25 02:01:57 +00:00
2026-06-25 02:01:57 +00:00
2026-07-28 18:03:08 +00:00
2026-07-09 08:49:20 +00:00
2026-08-11 00:02:43 +00:00
2026-06-29 13:49:21 +00:00
2026-07-21 20:41:13 -07:00
2026-07-29 13:43:14 +00:00
2026-06-13 00:37:34 +00:00
2026-08-10 13:22:35 -07:00
2026-08-20 16:24:23 -07:00
2026-08-20 16:24:23 -07:00
2026-08-05 15:34:54 -07:00
2026-06-13 00:37:34 +00:00
2026-07-29 05:18:34 +00:00
2026-08-14 22:17:47 +00:00
2026-07-08 05:32:05 +00:00
2026-08-10 21:20:55 -07:00
2026-08-01 10:20:47 +00:00
2026-08-20 11:08:59 -07:00
2026-08-05 15:34:54 -07:00
2026-07-10 01:40:35 +00:00
2026-08-20 10:59:34 -07:00
2026-06-25 17:51:45 +08:00
2026-06-23 19:04:37 -07:00
2026-08-15 00:00:14 +00:00
2026-07-29 03:22:09 +00:00
2026-07-30 10:48:01 -07:00
2026-08-07 06:01:29 +00:00
2026-06-23 19:04:37 -07:00
2026-08-13 13:57:13 +00:00
2026-07-10 00:32:37 -07:00
2026-07-15 14:15:26 +02:00
2026-07-14 22:24:56 +00:00
2026-06-25 18:37:34 -07:00
2026-08-02 10:13:21 +00:00
2026-06-23 19:04:37 -07:00
2026-07-08 05:32:05 +00:00
2026-07-01 14:25:45 +00:00
2026-07-29 15:08:43 +00:00
2026-08-19 00:02:35 +00:00
2026-08-19 00:02:35 +00:00
2026-06-18 15:47:26 -07:00
2026-06-25 11:13:22 -07:00
2026-08-10 19:14:03 -07:00
2026-06-29 15:31:17 +08:00
2026-07-24 07:23:56 +07:00
2026-06-25 14:37:10 +08:00
2026-06-29 18:54:57 +08:00
2026-06-24 21:38:03 +08:00
2026-08-21 20:52:14 +00:00
2026-08-21 15:54:45 -07:00
2026-08-11 18:48:02 -07:00
2026-06-22 21:50:20 -07:00
2026-07-21 21:52:08 -07:00
2026-08-07 12:54:05 +08:00
2026-06-13 00:37:34 +00:00
2026-08-19 14:04:09 -07:00
2026-08-20 06:22:20 +09:00
2026-07-30 12:32:37 +09:00
2026-07-15 08:58:25 +00:00
2026-07-15 08:58:25 +00:00
2026-07-01 17:31:20 +08:00
2026-07-17 19:08:23 +08:00
2026-07-02 00:46:55 -07:00