Merge Critical Corrections plan 002: two API processes, worker drains its queue
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 6m11s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 59s

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

View File

@@ -226,6 +226,15 @@ If a service is refused, the contract uses other codes: set `CORREIOS_COD_PAC`
or `CORREIOS_COD_SEDEX`. Correios price by the box, so `JADLOG_CAIXA_CM` and the
package weights must be set (they already are for Jadlog).
## 9. API processes
`API_WORKERS` is how many uvicorn processes the API container runs (default 2;
`1` runs one process, as before). More than one keeps a slow checkout, such as
a PDF of up to 150 MB being checked, from holding every other request in the
only process; the API's `/tmp` is sized for two such checks at once. It applies
to the API only, never to the worker. Set it in the stack's environment and
redeploy.
## Current blocker
This is the final deployment shape, but it is not authorized for production