Flownium
9d81deb0f3
fix(gateway): publish API server heartbeat and metrics after bind
...
The api_server platform wrote runtime status exactly once at bind (the
_connected mark) and never again: last_heartbeat stayed at boot time and
metrics_today froze at zero, so the dashboard showed stale API Server
activity until a full app restart (#52323 ).
The adapter now keeps daily request/message/token counters and a bounded
latency sample, publishes a metrics-bearing snapshot at bind, records
metrics after each completed _run_agent turn and /v1/runs run, and a
30-second heartbeat loop re-publishes while connected. gateway.status
gains a platform_metrics field on the platform payload, and
/health/detailed serves the live adapter metrics alongside the
persisted platform map.
Salvaged from #52345 by @itsflownium (Flownium) — reworked onto current
main (run-worker submission, bind-retry loop, readiness work counts).
Fixes #52323
Co-authored-by: Flownium <157689911+itsflownium@users.noreply.github.com >
2026-09-25 17:53:43 -05:00
..
2026-09-25 17:53:43 -05:00
2026-09-22 07:05:11 -04:00
2026-09-19 01:38:09 -04:00
2026-09-23 08:09:47 -07:00
2026-09-23 16:20:19 +05:30
2026-09-10 10:27:07 -07:00
2026-09-24 11:50:30 -04:00
2026-09-18 17:26:10 -04:00
2026-09-20 20:13:19 -07:00
2026-09-23 06:03:10 -07:00
2026-09-23 15:26:34 -04:00
2026-09-24 13:10:14 -04:00
2026-09-23 15:26:34 -04:00
2026-09-23 14:55:08 -07:00
2026-09-20 17:01:05 -07:00
2026-09-18 01:43:35 +05:30
2026-09-24 11:50:30 -04:00
2026-09-12 02:11:24 -04:00
2026-09-24 13:58:24 +05:30
2026-09-23 10:43:45 -04:00
2026-09-21 05:06:45 -07:00
2026-09-15 19:04:59 -07:00
2026-09-21 02:08:18 -07:00
2026-09-21 02:08:18 -07:00
2026-09-13 05:08:29 -07:00
2026-09-13 05:08:29 -07:00
2026-09-17 00:15:35 -07:00
2026-09-17 00:15:35 -07:00
2026-09-23 06:46:02 -07:00
2026-09-20 14:22:58 -07:00
2026-09-15 18:34:11 -07:00
2026-09-21 00:58:39 -04:00
2026-09-11 15:44:00 -07:00
2026-09-11 15:44:00 -07:00
2026-09-23 18:29:35 -05:00
2026-09-17 13:52:05 -04:00
2026-09-23 15:26:34 -04:00
2026-09-17 13:52:05 -04:00
2026-09-19 01:43:50 -04:00
2026-09-23 21:26:49 +05:30
2026-09-16 17:23:01 -07:00
2026-09-23 07:48:32 -07:00
2026-09-22 07:05:11 -04:00
2026-09-25 12:01:44 -05:00
2026-09-23 04:44:31 -07:00
2026-09-23 10:13:26 -04:00
2026-09-21 00:58:39 -04:00
2026-09-20 15:30:45 -07:00
2026-09-21 02:58:40 -07:00
2026-09-22 16:15:34 +05:30
2026-09-17 20:56:27 +05:30
2026-09-18 01:43:35 +05:30
2026-09-23 14:55:08 -07:00
2026-09-25 21:28:55 +00:00
2026-09-22 09:50:22 -07:00
2026-09-23 08:25:28 -07:00
2026-09-25 13:49:31 -05:00
2026-09-23 19:51:34 -04:00
2026-09-19 01:28:23 -07:00
2026-09-13 20:52:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-17 09:06:17 -07:00
2026-09-24 22:31:37 +05:30
2026-09-25 21:25:57 +05:30
2026-09-21 19:08:19 -04:00
2026-09-19 01:28:23 -07:00
2026-09-25 12:01:44 -05:00
2026-09-19 10:38:30 -07:00
2026-09-20 18:50:27 +05:30
2026-09-19 02:28:50 -07:00
2026-09-23 14:55:08 -07:00
2026-09-14 15:38:34 -04:00
2026-09-19 02:28:50 -07:00
2026-09-15 04:12:13 -07:00
2026-09-20 12:48:26 -07:00
2026-09-18 10:06:25 -07:00
2026-09-23 15:26:34 -04:00
2026-09-18 17:26:10 -04:00
2026-09-24 11:50:30 -04:00
2026-09-23 17:09:54 -07:00
2026-09-19 23:36:24 -07:00
2026-09-20 13:37:10 -07:00
2026-09-10 18:17:22 -07:00
2026-09-11 03:45:33 +05:30
2026-09-23 04:44:31 -07:00
2026-09-23 22:22:32 +05:30
2026-09-19 09:40:23 -07:00
2026-09-23 19:51:34 -04:00
2026-09-11 12:23:51 -04:00
2026-09-25 17:53:43 -05:00
2026-09-22 07:05:11 -04:00
2026-09-24 22:28:19 +05:30
2026-09-13 05:20:26 -07:00
2026-09-24 22:27:32 +05:30
2026-09-24 22:27:32 +05:30
2026-09-19 03:35:50 -07:00
2026-09-20 00:09:14 -07:00
2026-09-18 01:43:35 +05:30
2026-09-12 12:03:39 +05:30
2026-09-18 09:46:35 -07:00
2026-09-18 01:43:35 +05:30
2026-09-18 17:26:10 -04:00