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> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||