feat: show which checker ran a check and what it is doing #83

Merged
Sebi merged 2 commits from feat/checker-activity into ci/pipeline 2026-11-22 12:52:18 +00:00
Owner

Stacked on #81 (CI).

  • agent_instances: every process polling with an agent token (agent, organization, version, first and last contact); written at most once a minute per instance. Platform instances are visible to all organizations, own ones only to their organization (RLS).
  • Checks in progress: running:<instance> hash in Redis from handing out a job until its result arrives; entries count until their timeout plus 30 s, so a crashed checker does not look busy forever.
  • Monitor page: recent checks name and link the checker instance.
  • /checkers/:id and GET /api/v1/org/checkers/:id: active or not, version, started, last contact, running and queued checks, the viewer's checks of the last hour (count, failures, average latency), latest results, other instances of the same checker. Refreshes every 5 s.
  • Isolation: other organizations' running checks appear only as a count; their monitor names never show (tested with two organizations on one platform checker). Organization-owned checkers of others return 404.

Closes #82

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

Stacked on #81 (CI). - `agent_instances`: every process polling with an agent token (agent, organization, version, first and last contact); written at most once a minute per instance. Platform instances are visible to all organizations, own ones only to their organization (RLS). - Checks in progress: `running:<instance>` hash in Redis from handing out a job until its result arrives; entries count until their timeout plus 30 s, so a crashed checker does not look busy forever. - Monitor page: recent checks name and link the checker instance. - `/checkers/:id` and `GET /api/v1/org/checkers/:id`: active or not, version, started, last contact, running and queued checks, the viewer's checks of the last hour (count, failures, average latency), latest results, other instances of the same checker. Refreshes every 5 s. - Isolation: other organizations' running checks appear only as a count; their monitor names never show (tested with two organizations on one platform checker). Organization-owned checkers of others return 404. Closes #82 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added this to the M6 Admin UI milestone 2026-11-22 11:55:07 +00:00
Sebi added 2 commits 2026-11-22 11:55:09 +00:00
Refs #82

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
feat: show which checker ran a check and what it is doing
ci / image (pull_request) Successful in 4m31s
ci / lint (pull_request) Successful in 4m38s
ci / build (pull_request) Successful in 6m33s
ci / test (pull_request) Successful in 8m27s
0c2155fdc2
Every recent check on a monitor page names and links the checker
instance that ran it. The checker page shows whether it is active, its
version, the checks it runs right now and has queued, and the viewer's
latest results on it, refreshing every five seconds. Platform checkers
serve all organizations, so other organizations' work appears only as a
count. Checks in progress are tracked in Redis between handing out a job
and receiving its result.

Closes #82

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit ea0acf069f into ci/pipeline 2026-11-22 12:52:18 +00:00
Sebi deleted branch feat/checker-activity 2026-11-22 12:52:21 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#83