dont be so aggressive about waking up more jobs, since this just causes excess locking when we dont need it
This commit is contained in:
@ -254,9 +254,10 @@ public class JobQueue {
|
|||||||
if (rv != null) {
|
if (rv != null) {
|
||||||
// we found one, but there may be more, so wake up enough
|
// we found one, but there may be more, so wake up enough
|
||||||
// other runners
|
// other runners
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
|
||||||
_log.debug("Waking up " + (ready-1) + " job runners (and running one)");
|
//if (_log.shouldLog(Log.DEBUG))
|
||||||
awaken(ready-1);
|
// _log.debug("Waking up " + (ready-1) + " job runners (and running one)");
|
||||||
|
//awaken(ready-1);
|
||||||
return rv;
|
return rv;
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
|
Reference in New Issue
Block a user