-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
label-printer: sometimes the printer stops printing #170
Comments
Could we do something like https://www.baeldung.com/linux/systemd-service-periodic-restart and just restart the service every night at 3 am or something? |
Yes, we could. But I prefer to fix the problem (root cause) instead. If we just "paper over" issues we will soon have a long list of jobs that do nothing but restart services, and after a few months nobody will remember why. |
I had to restart ther service today again. Before:
after:
|
lol, sorry, it was me that stopped the container by attaching to it. That is why it stopped by KeyboardInterrupt. |
A service for the label printeris created as a docker container, see #168. Sometimes the printer stops printing labels, and restarting the service helps:
before the service is restarted, it is not possible to see that there is anything wrong with it
it looks the same after it is restarted
Perhaps we should change the way p2k16 talks to the service; it could ask "hello, are you there?" and expect an answer "yes, I'm ready" before trying to print, That way it would be possible to show an error message to the user if the service doesn't respond.
(if we want end-to-end checking, the service should probably talk to the printer before accepting print jobs as well)
The text was updated successfully, but these errors were encountered: