[cups.bugs] [BUG] cannot set JobRetryInterval in cups-1.3.9

Jeff Chua jeff.chua.linux at gmail.com
Sat Jun 27 23:43:47 PDT 2009


On Thu, Feb 5, 2009 at 5:29 AM, Michael R Sweet<msweet at apple.com> wrote:

Michael,

I've been trying to fine-tune cups to make JobRetryInterval more
precise. It seems the current scheduler is waiting for 10 seconds
instead of taking the value of JobRetryInterval as defined in
cupsd.conf

Attached a patch that works with cups-1.4rc1. It included debugs [JJ]
so that you can use "tail -f error_log" to look at the exact delays
between job.

Also, I've subtracted 1 second from set_hold_until() so that the job
will be printed on the "next timeout" since timeout always add 1
second at the end for cases where the scheduler wakes up same time as
the job-held that happened to be ready to be printed.

Without the patch, there's always 2 seconds extra delay between
retries for JobRetryInterval = 8.

Thanks,
Jeff.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-holdtime
Type: application/octet-stream
Size: 2406 bytes
Desc: not available
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20090627/40bceebe/attachment.obj>


More information about the cups-devel mailing list