rdev/internal/worker
jordan cfba724f8a feat: add work task error classification and user-facing error codes
- Add WorkErrorCode type with RATE_LIMITED, AUTH_FAILED, TIMEOUT, STALE_WORKER, AGENT_ERROR, INVALID_SPEC
- Add ClassifyAgentError function to detect error patterns from stderr
- Add error_code column to work_queue table (migration 016)
- Add FailWithCode method to WorkQueue interface and implementations
- Update RequeueStaleWithIDs to mark permanently failed tasks with STALE_WORKER
- Add ErrorCode to BuildResult for API responses
- Update work executor to classify errors before failing tasks

This enables users to see actual failure reasons (e.g., "RATE_LIMITED") instead of
builds stuck in "running" state forever when Claude hits rate limits.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 00:07:34 -07:00
..
build_executor.go chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
mock_test.go feat: add work task error classification and user-facing error codes 2026-02-03 00:07:34 -07:00
operation_cleanup.go feat: add operations audit system and template improvements 2026-02-01 19:08:57 -07:00
pod_git_operations.go chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
queue_maintenance_test.go feat: add work task error classification and user-facing error codes 2026-02-03 00:07:34 -07:00
queue_maintenance.go fix: Sync build audit with work queue when stale tasks are requeued 2026-01-31 02:07:52 -07:00
queue_processor.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
work_executor_test.go feat: add work task error classification and user-facing error codes 2026-02-03 00:07:34 -07:00
work_executor.go feat: add work task error classification and user-facing error codes 2026-02-03 00:07:34 -07:00