Skip to content

Commit 2992b0b

Browse files
authored
Commit missing js files (#26)
1 parent 9e0d6bd commit 2992b0b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

javascript/dist/queue/Worker.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,10 @@ class Worker extends BaseRunner_1.BaseRunner {
131131
async shouldShutdownEarly() {
132132
const totalWorkers = await this.client.sMembers(this.key('workers'));
133133
const totalWorkersCount = totalWorkers.length;
134-
console.log("[ci-queue] Total workers count: ", totalWorkersCount);
135134
// Only keep 20% of workers running
136135
const stayRunningThreshold = Math.max(Math.floor(totalWorkersCount * 0.2), 1);
137-
console.log("[ci-queue] Threshold for early shutdown: ", stayRunningThreshold);
138136
const parallelJob = parseInt(this.config.workerId, 10);
139137
const shouldShutdownEarly = parallelJob > stayRunningThreshold;
140-
console.log("[ci-queue] Parallel job: ", parallelJob, "Should shutdown early: ", shouldShutdownEarly);
141138
return shouldShutdownEarly;
142139
}
143140
}

0 commit comments

Comments
 (0)