mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-05 13:41:36 +02:00
Addresses reports of files being automatically reprinted hours after the original print completed. The root cause was a race condition where the queue item status was updated to "printing" AFTER the print command was sent, allowing stuck "pending" items to be re-triggered on restart. Changes: - Set status to "printing" BEFORE sending print command to prevent re-triggering if backend crashes after print starts - Add 24-hour expiration for stale pending queue items - Add duplicate prevention: skip archives completed within last 4 hours Trade-off: If backend crashes after status update but before print command, item will be stuck in "printing" without actually printing. This is safer than accidentally reprinting and wasting filament.