cloudprint-service icon indicating copy to clipboard operation
cloudprint-service copied to clipboard

Jobs fail on the first try, succeed on second attempt after about 90 sec. delay

Open bits01 opened this issue 10 years ago • 3 comments

It seems that jobs always fail on the first try, then cloudprint.py waits for about 90 sec. and tries again and the job succeeds.

From /var/log/syslog on Linux Mint 17.2 running 0.13-1+deb8u1+ppa1:

Oct 23 15:32:19 server cloudprint.py: Polling for jobs on HP
Oct 23 15:32:20 server cloudprint.py: Job Test failed - Will retry
Oct 23 15:33:47 server cloudprint.py: Polling for jobs on HP
Oct 23 15:33:48 server cloudprint.py: SUCCESS Test

This is strange, not sure what's going on. Most likely this should be fixed upstream if it is an auth problem or maybe something to do with the Google print API, rate limiting, etc. I'm just guessing here.

bits01 avatar Oct 24 '15 01:10 bits01

Just the first job - 67f9360.

davesteele avatar Oct 24 '15 02:10 davesteele

So it's a CUPS problem, not Google. Do we need such a big wait between retries? What happens if we try to send the job again to CUPS after waiting for 1 sec.?

bits01 avatar Oct 24 '15 02:10 bits01

The variable is FAIL_RETRY.

davesteele avatar Oct 24 '15 03:10 davesteele