We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad9874 commit 4eb6a52Copy full SHA for 4eb6a52
queue.js
@@ -50,7 +50,7 @@ class Queue extends EventEmitter {
50
// generate 16 digit job id
51
let d = Date.now().toString()
52
let r = Math.floor(Math.random() * 1000).toString()
53
- let id = Number(r.padStart(3, '0') + d)
+ let id = Number((r + d).padEnd(16, '0'))
54
this.pile.push(new Job(id, data)); // add to bottom of pile
55
console.log('Job added (' + this.pile.length + ' on pile)')
56
this.next(); // Start next job if idle
0 commit comments