towerops/lib/towerops_web
Graham McIntire 0ed82c47b9
Make agent heartbeat endpoint asynchronous for faster response
Changed heartbeat database update from synchronous to async using Task.start.
This reduces response time from ~20ms to <1ms by not waiting for the
database write to complete before sending the response.

The heartbeat is a fire-and-forget operation where the agent doesn't
need confirmation that the update succeeded.

In test environment, it remains synchronous to avoid DB ownership issues.
2026-01-14 17:01:57 -06:00
..
components Add Agents navigation link to authenticated layout 2026-01-13 13:14:23 -06:00
controllers Make agent heartbeat endpoint asynchronous for faster response 2026-01-14 17:01:57 -06:00
live Enhance agent assignment UI with clear inheritance indicators 2026-01-14 16:20:20 -06:00
plugs Fix agent API protobuf support and Mix.env runtime error 2026-01-14 16:35:47 -06:00
endpoint.ex Fix health check logging with dynamic log level in endpoint 2026-01-06 13:57:32 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
router.ex Fix agent API to accept protobuf content type 2026-01-14 16:58:11 -06:00
telemetry.ex format 2025-12-21 11:31:08 -06:00
user_auth.ex Streamline login flow and fix test failures 2026-01-13 13:08:24 -06:00