forked from I2P_Developers/i2p.i2p
make job runner quantity configurable
This commit is contained in:
@@ -74,7 +74,7 @@ public class JobQueue {
|
||||
|
||||
/** default max # job queue runners operating */
|
||||
private final static int DEFAULT_MAX_RUNNERS = 1;
|
||||
/** router.config parameter to override the max runners @deprecated unimplemented */
|
||||
/** router.config parameter to override the max runners */
|
||||
private final static String PROP_MAX_RUNNERS = "router.maxJobRunners";
|
||||
|
||||
/** how frequently should we check and update the max runners */
|
||||
@@ -300,7 +300,7 @@ public class JobQueue {
|
||||
|
||||
public void allowParallelOperation() {
|
||||
_allowParallelOperation = true;
|
||||
runQueue(RUNNERS);
|
||||
runQueue(_context.getProperty(PROP_MAX_RUNNERS, RUNNERS));
|
||||
}
|
||||
|
||||
/** @deprecated do you really want to do this? */
|
||||
|
||||
Reference in New Issue
Block a user