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

Commit

Permalink
fix(taskscheduler): label sharded tasks with numbers instead of letters
Browse files Browse the repository at this point in the history
Letters run into a problem with a maximum of 26.
See #2042
  • Loading branch information
juliemr committed Apr 20, 2015
1 parent 2e0474e commit e599cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/taskScheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TaskScheduler.prototype.nextTask = function() {
++queue.numRunningInstances;
var taskId = rotatedIndex + 1;
if (queue.specLists.length > 1) {
taskId += String.fromCharCode(97 + queue.specsIndex); //ascii 97 is 'a'
taskId += '-' + queue.specsIndex;
}
var specs = queue.specLists[queue.specsIndex];
++queue.specsIndex;
Expand Down

0 comments on commit e599cf3

Please sign in to comment.