some boundary cases for the queue pumper's wait time

This commit is contained in:
jrandom
2004-07-15 01:04:13 +00:00
committed by zzz
parent 44491c1514
commit f6ef77429c

View File

@ -435,6 +435,10 @@ public class JobQueue {
awaken(toAdd.size());
} else {
if (timeToWait < 100)
timeToWait = 100;
if (timeToWait > 10*1000)
timeToWait = 10*1000;
if (_log.shouldLog(Log.DEBUG))
_log.debug("Waiting " + timeToWait + " before rechecking the timed queue");
try {