Redis¶
Redis enables two features: distributed async job queuing (arq) and cross-process rate limiting.
Configuration¶
When REDIS_URL is not set, both features degrade gracefully:
- Async jobs run as in-process asyncio tasks
- Rate limiting is per-process only
Start Redis¶
Or run directly:
Start the arq worker¶
The worker connects to Redis using REDIS_URL and processes inference jobs.
Worker settings¶
| Setting | Default | Description |
|---|---|---|
max_jobs |
10 | Concurrent jobs per worker process |
job_timeout |
300s | Seconds before arq considers a job timed out |
Edit app/infra/queue/worker.py to adjust.