[cups.general] Indefinite retry of jobs

Michael Sweet msweet at apple.com
Wed Dec 16 08:32:44 PST 2009


On Dec 16, 2009, at 5:23 AM, Bart Dopheide wrote:

> The default setting of printer-error-policy of a queue is "stop-printer".
> 
> Since we did not like having to manually start a queue, we wrote some simple scripting to start any queue that was stopped. Essentially, this worked, but there might be another (cleaner) way.
> 
> We'd like to retry to print a job forever until the job is finally completed. That is why we are exploring printer-error-policy "retry-job". According to the documentation, a job is retried only JobRetryLimit times. I see no reference to zero being a special value meaning 'retry until maxint' or 'retry until end of days'. If a read scheduler/job.c (cups_1.3.8-1+lenny6) correctly, zero indeed does not have a special meaning.

Correct, you'll need to use a really big number right now - 2147483647 (INT_MAX) will effectively retry "forever" unless you set the JobRetryInterval to 0, in which case it'll retry as quickly as possible.

> Basically, my question is: how can we retry a job forever without scripting, i.e. with only lpadmin and/or cupsd.conf? If there is no such way, would you please accept my feature request to make zero a special value in JobRetryLimit?


Sure, please file it at:

    http://www.cups.org/str.php

We can put it into CUPS 1.5.

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list