[bull] add removeRepeatableByKey to Queue interface (#35396)

This commit is contained in:
Felipe 2019-05-14 17:57:38 -03:00 committed by Nathan Shively-Sanders
parent 3036b5af27
commit e096d6a6b4

View File

@ -616,6 +616,11 @@ declare namespace Bull {
*/
removeRepeatable(name: string, repeat: (CronRepeatOptions | EveryRepeatOptions) & { jobId?: JobId }): Promise<void>;
/**
* Removes a given repeatable job by key.
*/
removeRepeatableByKey(key: string): Promise<void>;
/**
* Returns a promise that will return an array of job instances of the given types.
* Optional parameters for range and ordering are provided.