Skip to content

Commit 30e68ba

Browse files
committed
fix: ensure new jobs are put on the left side of the job processing queue
1 parent a39c809 commit 30e68ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JobProcessingQueue.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export class JobProcessingQueue {
7878
});
7979

8080
if (matchIndex === -1) {
81-
this._queue.push(job);
81+
// put on left side of the queue
82+
this._queue.unshift(job);
8283
} else {
8384
this._queue.splice(matchIndex, 0, job);
8485
}

0 commit comments

Comments
 (0)