mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-11-23 13:21:07 +00:00
make job runner quantity configurable
This commit is contained in:
1 parent
5e67008d26
commit
f3a2af8f10
1 file changed
+2
-2
@@ -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