Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit e599cf3

Browse files
committed
fix(taskscheduler): label sharded tasks with numbers instead of letters
Letters run into a problem with a maximum of 26. See #2042
1 parent 2e0474e commit e599cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/taskScheduler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ TaskScheduler.prototype.nextTask = function() {
8989
++queue.numRunningInstances;
9090
var taskId = rotatedIndex + 1;
9191
if (queue.specLists.length > 1) {
92-
taskId += String.fromCharCode(97 + queue.specsIndex); //ascii 97 is 'a'
92+
taskId += '-' + queue.specsIndex;
9393
}
9494
var specs = queue.specLists[queue.specsIndex];
9595
++queue.specsIndex;

0 commit comments

Comments
 (0)