f0275c41d02bf28110e48a5a851ad1db6e80e0a2
All checks were successful
ci / test-and-build (push) Successful in 11m21s
work-queue-api
Lightweight internal work queue API for TheLab agents.
Features
- Go HTTP API with chi router
- SQLite storage, auto-migrated on startup
- Projects and work items endpoints from
SPEC.md - Dispatch history tracking
- Enforces one
in_progressitem per agent - No auth, binds to port
8080by default
Run locally
export DATABASE_URL=./work_queue.db
export PORT=8080
~/.local/go/bin/go run ./cmd/work-queue-api
Build
~/.local/go/bin/go build ./cmd/work-queue-api
Endpoints
GET /healthPOST/GET/PATCH /projectsPOST/GET/PATCH/DELETE /work
Notes
POST /workacceptsassigned_agent, but still creates the item inqueuedPATCH /work/:idenforces status transitions from the specDELETE /work/:idcancels queued or dispatched work items
Description
Languages
Python
57.8%
Shell
40.8%
Dockerfile
1.4%