This commit is contained in:
wmantly committed 2017-10-09 02:06:37 -04:00
1 parent cfd6c373ad
commit 47027fdf39
2 files changed
+5 -2

No files matched your search

+1
View File
@@ -307,6 +307,7 @@ var runnerFree = function(runner){
} }
delete label2runner[runner.label]; delete label2runner[runner.label];
console.log(`Runner freed ${runner.label}.`, worker);
workers.startRunners({worker: runner.worker}); workers.startRunners({worker: runner.worker});
}; };
+4 -2
View File
@@ -52,8 +52,10 @@ sleep(${sleepTime})
let __do = function(till){ let __do = function(till){
if(!till) return ;
callRunner(String(Math.random())[3]); callRunner(String(Math.random())[3]);
setTimeout(__do, 1000, --till); setTimeout(__do, 1500, --till);
}; };
__do(50) __do(30)