feat: "Gerar de novo" also from Imprimindo, taking the file out of the hot folder (order #36)
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 7m9s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m30s

#36 is already in Imprimindo. From there the order goes back to Arte
recebida like a card leaving Imprimindo: what Flexi has not taken is
withdrawn from the machine's hot folder (hotfolder.stop), and the step
back is recorded as "Arquivo gerado de novo".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-17 17:38:02 -03:00
parent 27b26cd1ae
commit d76288c335
3 changed files with 16 additions and 13 deletions

View File

@@ -170,10 +170,8 @@ def run():
print('PASS: generated file approved as final without re-uploading; order queued for printing')
# A ready file generated again for the part size of now (order #36,
# 2026-11-17): refused while printing; from Arte conferida the generated
# final goes, the order steps back to Arte recebida and the file is made
# once more.
client.call('/operator/orders/' + oid + '/print-files/again', {}, operator=True, expected=409)
# 2026-11-17): from Arte conferida or Imprimindo the generated final goes,
# the order is back in Arte recebida and the file is made once more.
again_upload = upload_bytes(client, artwork(), name='LOCAL-AGAIN.png')
again, made = wait_print(client, paid_order(client, loose_item(again_upload))['id'], 'ready')
v = client.call('/operator/orders/' + again['id'] + '/final-files',