fix: an HTML page from the proxy is a passing outage, a full machine and a proof card in Finalizado are said before the move (DTF-WEB-1Z, 20, 21)
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m42s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m20s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-27 09:26:48 -03:00
parent ffc7d3153a
commit 5dc4135562
3 changed files with 14 additions and 1 deletions

View File

@@ -692,6 +692,13 @@ async function pullTo(order, machineId){
if(machine&&!(machine.products||[]).includes(/^uv/.test(order.snapshot.items[0]?.mode||'')?'uv':'textil')){
say('A '+machine.name+' não imprime este produto.');return;
}
// A machine with every place in Imprimindo taken (app/machines.py): said
// here, as its lane shows, and the card stays put (Sentry DTF-WEB-20).
if(machine){
const cap=machine.places||board.printing_cap||3;
const busy=(board.orders||[]).filter(o=>o.state==='imp'&&!o.cancelled_at&&o.machine?.id===machine.id&&o.id!==order.id).length;
if(busy>=cap){say('A '+machine.name+' já tem '+busy+' em Imprimindo. Abre vaga quando um pedido sair de lá.');return;}
}
const alert=(machine?.alerts||[]).find(row=>row.blocking);
if(alert&&!await machineAlertDialog(order,target,alert))return;
try{