xtablo-source/backend/internal/jobs
Arthur Belleville a1c2828dc4
feat(06-01): implement internal/jobs package with workers and error handler
- HeartbeatArgs + HeartbeatWorker (logs slog.Info on each tick)
- OrphanCleanupArgs + OrphanCleanupWorker (S3 delete then DB delete loop)
- NewOrphanCleanupWorker constructor with pool + FileStorer injection
- SlogErrorHandler implementing river.ErrorHandler (HandleError + HandlePanic)
- fileQuerier interface for test injection without real DB
- Unit tests: 7 tests pass (pure mock-based, no DB required)
- go build ./... exits 0
2026-05-15 16:34:08 +02:00
..
error_handler.go feat(06-01): implement internal/jobs package with workers and error handler 2026-05-15 16:34:08 +02:00
error_handler_test.go feat(06-01): implement internal/jobs package with workers and error handler 2026-05-15 16:34:08 +02:00
heartbeat.go feat(06-01): implement internal/jobs package with workers and error handler 2026-05-15 16:34:08 +02:00
heartbeat_test.go feat(06-01): implement internal/jobs package with workers and error handler 2026-05-15 16:34:08 +02:00
orphan_cleanup.go feat(06-01): implement internal/jobs package with workers and error handler 2026-05-15 16:34:08 +02:00
orphan_cleanup_test.go feat(06-01): implement internal/jobs package with workers and error handler 2026-05-15 16:34:08 +02:00