You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No — auto-resumes if simulateErrors picks next job
out-of-paper
✅
Yes — call POST /printer/reload-paper
low-ink
❌
Yes — call POST /printer/replace-ink
offline
✅
Yes — call POST /printer/clear-error
connection-lost
✅
No
corrupt-data
❌
No — job fails; printer stays available
overheating
✅
Yes — call POST /printer/clear-error
Quick start
# Build and run
docker build -t printit .
create a folder and copy its path
docker run -p 3000:3000 -p 9100:9100 -p 8631:8631 -v "<path>" printit
# Submit a test job
curl -X POST http://localhost:3000/test-job \
-H "Content-Type: application/json" \
-d '{"name": "My Document", "pages": 4}'# Watch live events
curl -N http://localhost:3000/events
# Cancel a job
curl -X DELETE http://localhost:3000/jobs/<job-id># Retry a failed job
curl -X POST http://localhost:3000/jobs/<job-id>/retry
# Clear a blocking error
curl -X POST http://localhost:3000/printer/clear-error
Dont have a printer and using windows but need to test printing tasks . Use g0ps_virtual_printer , will substitute your actual printer and can be used for testing . Later just add a real printer to device and continue where you left and test or deploy.