Skip to content
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

scheduler/printers.c: Don't remove processing temp queue #364

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

zdohnal
Copy link
Member

@zdohnal zdohnal commented Apr 6, 2022

cupsdDeleteTemporaryPrinters() deletes temporary queues which their last
status was updated 1 minute ago or older. It doesn't take into account
the fact the printer can be processing a big print job and cupsd deletes
the temp queue either way.

The fix in the PR now set cupsd to ignore queues which are in processing
state. If the delay in job processing is caused by an error in printer,
the correct error should kick in IPP backend.

cupsdDeleteTemporaryPrinters() deletes temporary queues which their last
status was updated 1 minute ago or older. It doesn't take into account
the fact the printer can be processing a big print job and cupsd deletes
the temp queue either way.

The fix in the PR now set cupsd to ignore queues which are in processing
state. If the delay in job processing is caused by an error in printer,
the correct error should kick in IPP backend.
@zdohnal zdohnal added bug Something isn't working priority-medium labels Apr 6, 2022
@zdohnal zdohnal added this to the 2.4.2 milestone Apr 6, 2022
@zdohnal
Copy link
Member Author

zdohnal commented Apr 6, 2022

At this specific case the delay in printing was caused by 'printer being busy' (based on https://www.pwg.org/archives/ipp/2015/018399.html) or spool area was really full and the printer stuck. Here is the log.

IMHO IPP backend should exit with error after some timeout rather than cupsd cleaning up the queue.

@michaelrsweet is there a way how to clear the spooler on the printer by some IPP command? I get similar issue (printer reporting spool-area-full-report) on my printer sometimes, and only remedy I've found is to restart the whole device...

Copy link
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zdohnal
Copy link
Member Author

zdohnal commented Apr 7, 2022

Thx for the review! Merging.

@zdohnal zdohnal merged commit 480b43f into OpenPrinting:master Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants