Skip to content

Commit

Permalink
fix(queue-getters): only getting the first 2 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ATheCoder authored and manast committed Oct 12, 2021
1 parent 2d646d1 commit 653873a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/classes/queue-getters.ts
Expand Up @@ -102,27 +102,27 @@ export class QueueGetters extends QueueBase {
return this.getJobCountByTypes('waiting-children', 'paused');
}

getWaiting(start = 0, end = 1) {
getWaiting(start = 0, end = -1) {
return this.getJobs(['waiting'], start, end, true);
}

getWaitingChildren(start = 0, end = 1) {
getWaitingChildren(start = 0, end = -1) {
return this.getJobs(['waiting-children'], start, end, true);
}

getActive(start = 0, end = 1) {
getActive(start = 0, end = -1) {
return this.getJobs(['active'], start, end, true);
}

getDelayed(start = 0, end = 1) {
getDelayed(start = 0, end = -1) {
return this.getJobs(['delayed'], start, end, true);
}

getCompleted(start = 0, end = 1) {
getCompleted(start = 0, end = -1) {
return this.getJobs(['completed'], start, end, false);
}

getFailed(start = 0, end = 1) {
getFailed(start = 0, end = -1) {
return this.getJobs(['failed'], start, end, false);
}

Expand Down

0 comments on commit 653873a

Please sign in to comment.