Merge pull request #23231 from btkostner/master

update bull pause and resume params
This commit is contained in:
Daniel Rosenwasser
2018-02-13 12:01:10 -08:00
committed by GitHub
+6 -1
View File
@@ -135,7 +135,7 @@ declare namespace Bull {
promote(): Promise<void>;
}
type JobStatus = 'completed' | 'wait' | 'active' | 'delayed' | 'failed';
type JobStatus = 'completed' | 'waiting' | 'active' | 'delayed' | 'failed';
interface BackoffOptions {
/**
@@ -431,6 +431,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.
*/