Feature Request: Job Timeout

Paul paul.conklin at cerner.com
Wed Jun 15 06:43:42 PDT 2011


Until then, hopefully this will help you out, I just set this up as a cron job, you can alter as needed.

Cancel Jobs older than 7 days
for job in ` find /var/spool/cups -type f -iname "d*" -mtime +7 -exec basename {} \;  | cut -f2 -d'd' | cut -f1 -d'-' | sort | uniq`
        do
        cancel $job
done

> Hello,
>
> I'd like to request something which has already been asked for here in 2005: setting Job Timeouts. I.e. if a job stays uncompleted in the queue for whatever reason, cancel it and continue with the next one.
>
> It happens quite frequently here that jobs sit in the queue for hours, sometimes even days. Mostly it is because of wrong paper size selected, where the printer sits there asking for paper size X. Finally, when someone else wants to print, he/she cannot because that job is blocking the queue.
>
> I had to give everyone the right to cancel and purge jobs to cope with that, which is not an ideal solution.
>
> Thanks,
> Andreas





More information about the cups mailing list