Skip to content

chore(tasks): emit agent-server boot-time metric for the runs dashboard#66348

Merged
tatoalo merged 2 commits into
masterfrom
chore/tasks-agent-server-boot-metric
Jun 26, 2026
Merged

chore(tasks): emit agent-server boot-time metric for the runs dashboard#66348
tatoalo merged 2 commits into
masterfrom
chore/tasks-agent-server-boot-metric

Conversation

@tatoalo

@tatoalo tatoalo commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Problem

Cloud-task agent-server spawn time — node process start to a usable session (hasSession=true, what the backend health poll waits on) — isn't on any dashboard. We can't see boot latency or catch regressions for background-agent runs. We want it as a first-class series on the "Cloud background agents runs" dashboard.

Changes

  • The start_agent_server activity reads the agent-server's bootMs from /health once the server is healthy, and records it onto the existing tasks_process_sandbox_step_latency histogram with step="agent_server_boot".
  • New Sandbox.read_agent_server_boot_ms() — Modal and Docker each curl /health on their own in-sandbox port (8080 / 47821); the base returns None

@tatoalo tatoalo added the skip-agent-review Save $$$, skip auto agent reviews (Greptile) — use for trivial or chore PRs label Jun 26, 2026
@tatoalo tatoalo self-assigned this Jun 26, 2026
@greptile-apps

greptile-apps Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "chore(tasks): emit agent-server boot-tim..." | Re-trigger Greptile

Comment thread products/tasks/backend/logic/services/docker_sandbox.py Outdated
Comment thread products/tasks/backend/temporal/metrics.py Outdated
@tatoalo tatoalo removed the skip-agent-review Save $$$, skip auto agent reviews (Greptile) — use for trivial or chore PRs label Jun 26, 2026
@tatoalo tatoalo marked this pull request as ready for review June 26, 2026 14:24
@assign-reviewers-posthog assign-reviewers-posthog Bot requested a review from a team June 26, 2026 14:25
@tatoalo tatoalo enabled auto-merge (squash) June 26, 2026 14:27
@tatoalo tatoalo merged commit b02333c into master Jun 26, 2026
184 checks passed
@tatoalo tatoalo deleted the chore/tasks-agent-server-boot-metric branch June 26, 2026 14:42
@deployment-status-posthog

deployment-status-posthog Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-06-26 15:17 UTC Run
prod-us ✅ Deployed 2026-06-26 15:30 UTC Run
prod-eu ✅ Deployed 2026-06-26 15:34 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants