fix: two API processes by default and the worker drains its queue

The API ran as one uvicorn process, so a slow 150 MB PDF check at checkout
held every other request; WEB_CONCURRENCY now comes from API_WORKERS
(default 2, 1 restores one process) and the api /tmp grows to 512 MiB for
two checks at once. The worker delivered one outbox job per second; it now
drains up to 50 per pass before its periodic tasks.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-09 16:24:07 -03:00
parent 63af984e83
commit 74ac2c978b
6 changed files with 60 additions and 4 deletions

View File

@@ -15,6 +15,8 @@ PUBLIC_HOST=dtf.example.invalid
KANBAN_HOST=kanban-dtf.example.invalid
SITE_PORT=8080
KANBAN_PORT=8081
# API processes: 2 by default; 1 runs one process, as before. API only.
API_WORKERS=2
R2_ENDPOINT=TBD
R2_PUBLIC_ENDPOINT=TBD