Jadlog orders are invoiced by the MULTI EMPRESAS Olist account, so our
order reaches "Enviado" with forma_envio J and an empty tracking code.
When TINY_API_TOKEN_MULTI is set, shipped Jadlog orders without tracking
are matched in that account (search by customer CPF/name from the order
date, confirmed by numero_ordem_compra) and the code is forwarded in
codigo_rastreamento. Calls are serialized and cached; any failure keeps
today's payload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Install with npm ci from package-lock.json so a rebuild can't pull
different dependency versions than were tested.
- Run node directly (not via npm) so it receives SIGTERM and can drain
queued webhooks; give the stack a 60s stop_grace_period and start the
new task before stopping the old one.
- Add .dockerignore and stop tracking dist/ (already gitignored and
rebuilt by the Dockerfile).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When more than ~5 webhooks arrived together, the 6s-spaced live Tiny
queue exceeded the 30s max wait and forwarded the order without Tiny
data: empty fone and forma_envio, so n8n silently sent no WhatsApp
message (19 such drops on 2026-10-08 alone).
Tiny is acked before the lookup, so waiting only adds latency. Raise the
default max queue wait to 15 minutes so it stays a last-resort valve
instead of something an ordinary burst can hit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>