feat: printing files go into each machine's hot folder, part by part (item 10)
All checks were successful
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m13s
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 3m56s
All checks were successful
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m13s
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 3m56s
Pulled to Imprimindo, an order's files go as a copy into 3. Imprimindo/<máquina>/<C1|C2|C3>/, the class of each item (chosen in the Kanban, or measured by the Site), where FlexiPRINT takes them (Dropstar's third round, item 10). A film in parts goes to the same machine, in order, never more than two parts in its folder: the next is written when Flexi takes one. The card says "Parte 3/7 imprimindo · 4/7 ripando". The server decides what each folder gets (app/hotfolder.py, dtf_local.hot_parts) and the Kanban's computers write it: each part is claimed by one computer, so Flexi never gets it twice; a claim that did not finish goes back to the queue; a part gone from its folder was taken and is never written again; a card that leaves Imprimindo or is cancelled has what Flexi did not take deleted. A part without a class waits for one, and the class may still change in Imprimindo until its file is written. The folder sync also follows files one by one, so the parts of a film over 15 m are no longer taken for replaced copies of each other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -431,13 +431,15 @@ def run():
|
||||
onto = su.call(f'/operator/orders/{lane}/move', {'state': 'imp', 'version': 0, 'reason': '', 'machine_id': textil2},
|
||||
operator=True)
|
||||
assert str(onto['machine_id']) == textil2 and onto['machine_chosen'], onto
|
||||
# The contraction class (item 9): chosen per item until the order prints,
|
||||
# and back to the browser's measure with None.
|
||||
# The contraction class (item 9): chosen per item until its file goes to
|
||||
# the machine's hot folder (item 10), and back to the browser's measure with None.
|
||||
su.call(f'/operator/orders/{third}/contraction', {'item_index': 0, 'value': 'C3'}, operator=True)
|
||||
chosen = next(o for o in su.call('/operator/board', operator=True)['orders'] if o['id'] == third)['contraction']
|
||||
assert chosen['0']['class'] == 'C3' and chosen['0']['by'], chosen
|
||||
su.call(f'/operator/orders/{third}/contraction', {'item_index': 5, 'value': 'C1'}, operator=True, expected=422)
|
||||
su.call(f'/operator/orders/{lane}/contraction', {'item_index': 0, 'value': 'C1'}, operator=True, expected=409)
|
||||
# Printing, with nothing in the hot folder yet, it still changes.
|
||||
su.call(f'/operator/orders/{lane}/contraction', {'item_index': 0, 'value': 'C1'}, operator=True)
|
||||
su.call(f'/operator/orders/{lane}/contraction', {'item_index': 0, 'value': None}, operator=True)
|
||||
su.call(f'/operator/orders/{third}/contraction', {'item_index': 0, 'value': None}, operator=True)
|
||||
assert next(o for o in su.call('/operator/board', operator=True)['orders'] if o['id'] == third)['contraction'] == {}
|
||||
loaded = su.call('/operator/board', operator=True)
|
||||
|
||||
Reference in New Issue
Block a user