add getWaiting function to queue

This commit is contained in:
Blake Kostner
2018-01-27 13:38:31 -07:00
parent 2409f1b11f
commit f6955298ff
+5
View File
@@ -425,6 +425,11 @@ declare namespace Bull {
*/
getJob(jobId: JobId): Promise<Job>;
/**
* Returns a promise that will return an array with the waiting jobs between start and end.
*/
getWaiting(start?: number, end?: number): Promise<Job[]>;
/**
* Returns a promise that will return an array with the active jobs between start and end.
*/