jr: Worker observability - store status updates in DB and show in web UI

t-148·Epic·
·
·
·Omni/Jr.hs
Created5 months ago·Updated5 months ago·pipeline runs →

Execution Summary

4/4
Tasks Completed
$0.00
Total Cost
0s
Total Time

Design

Edit

Currently worker progress is only visible in CLI logs. Need to persist status updates to DB and display in web UI.

Goals:

  • See what stage a worker is at (claiming, running amp, reviewing, retrying)
  • Track retry count and reasons
  • Show timestamps for each stage transition
  • Display in task detail page for InProgress tasks

Design considerations:

  • New table: task_activity or worker_logs
  • Schema: task_id, timestamp, stage, message, metadata (JSON)
  • Web UI: Activity timeline on task detail page
  • Keep CLI logging as-is, just also write to DB

Child Tasks

  • t-148.1 - Add task_activity table schema [Done]
  • t-148.2 - Add logActivity helper and integrate into Worker.hs [Done]
  • t-148.3 - Show activity timeline on task detail page in web UI [Done]
  • t-148.4 - Display worker metrics on task detail page [Done]

Git Commits

83ff4b62Display worker metrics on task detail page
Ben Sima5 months ago5 files
dbe2b82dShow activity timeline on task detail page in web UI
Ben Sima5 months ago3 files
f151fbf7Add logActivity helper and integrate into Worker.hs
Ben Sima5 months ago2 files
27792aceAdd task_activity table schema
Ben Sima5 months ago1 files

Timeline (1)

🔄[human]Open → Done5 months ago