How routing works
What the router checks, in the order it checks it, every time a printer goes idle: tags, nozzle, material, grams left, and why a job keeps waiting.
Rackrew picks the next job for a printer automatically. This page describes exactly how, so you can predict what it will do rather than guess.
When it runs
Three triggers, any of which is enough:
- A printer reports that it has gone idle.
- You add a job to the Queue.
- The ten-second sweep finds an idle printer anyway.
The sweep exists so a missed status message can never strand a printer. The router does not wait on an event that might not arrive.
What it checks, in order
1. Queue order. Sticky entries first, so a multi-plate batch keeps its place across several printers. Then normal jobs. Infinite filler jobs last, so filler never blocks real work.
2. Whether the printer can run the job. Required tags, nozzle diameter, printer model, nozzle hardness for filled filament, and filament. On a printer with a multi-material unit, Rackrew finds a slot for each filament, whatever the order in the file. Without one, each filament has to be in the slot the file names.
3. Filament, by weight. Every job carries the grams its slicer calculated. Rackrew compares that against what the ledger says is left on the spool assigned to the slot and skips the printer if the job cannot finish. A nine-hour print does not get to stop at hour eight on an empty reel. A slot with no assigned spool has no weight to check. See Filament.
4. The claim. Picking a job happens under a short lock per organisation, and the copy is reserved before the lock is released. Two printers that go idle in the same instant cannot both take the same copy.
Where your files go
Print files are stored in Rackrew. When a printer gets a job, the bridge on your own network downloads the file, keeps a copy, and uploads it to the printer over the LAN.
| Link | Carries | Protocol |
|---|---|---|
| Printer ↔ bridge | G-code, camera, control commands | MQTT 8883 + FTPS 990 (Bambu), HTTP (Moonraker) |
| Bridge ↔ Rackrew | Job assignments and status updates | Outbound connection, JSON |
| Rackrew storage → bridge | The print file | HTTPS download through a short-lived link |
Consequences worth knowing:
- Printer credentials are encrypted in Rackrew. Access codes are stored encrypted and sent to the bridge when it connects, so it can talk to the printer.
- A dropped internet connection does not stop a print. The bridge keeps driving the printer over the LAN and reports back once the link returns.
- A file is downloaded once. The bridge keeps downloaded files by content hash, so a repeat job doesn't download the file again. It's still sent to the printer for each job.
See also Bambu setup, Moonraker setup and the API reference.