|
|
3f8ef65c5f
|
Jobbkø-worker: Rust-binær med polling, concurrency og retry
sidelinja-worker — tokio-basert orkestrator som poller job_queue:
- SELECT FOR UPDATE SKIP LOCKED for trygg concurrent polling
- Semaphore-styrt concurrency (--max-concurrent)
- Eksponentiell backoff: 30s × 2^(attempts-1)
- Handler-registry (HashMap<String, Box<dyn JobHandler>>)
- Strukturert JSON-logging via tracing
- Echo-handler for end-to-end testing
- CLI: --database-url, --ai-gateway-url, --max-concurrent, --poll-interval
Testet mot dev-database: echo-jobb fullført, ukjent type → retry → error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-15 15:40:32 +01:00 |
|