cups-filters icon indicating copy to clipboard operation
cups-filters copied to clipboard

Terminate filters if one in the chain fails

Open manuel-arguelles opened this issue 4 years ago • 1 comments

Hi,

Is it possible to notify the scheduler from a filter that all the processes (filters) of the current job must be terminated?

I have a situation when a filter exits with exit code 1 along with the backend, but one filter stays working (converting pages to raster) until all pages are done.

The filter gets a sigpipe when the others exit, but ignores it.

Even with the error policy set to abort-job, if I send a 300 pages pdf document to print and the printer fails at some point, I have to wait for the filter to complete converting all pages before the job ends/fails. Is there a way to notify the scheduler and fail faster?

manuel-arguelles avatar May 20 '21 02:05 manuel-arguelles

Can you tell us which filter keeps running? You can discover it by the top or ps commands. With the latter look for jobs run by the user lp.

tillkamppeter avatar Jan 03 '22 01:01 tillkamppeter