feat: add missing extendLock definition

and update lockKey doc
This commit is contained in:
Antony K. S
2023-10-19 09:38:43 +07:00
committed by Manuel Astudillo
parent 5f34bcebb6
commit 14432ff8a5
Vendored
+8 -1
View File
@@ -314,7 +314,7 @@ declare namespace Bull {
promote(): Promise<void>;
/**
* The lock id of the job
* Return a unique key representing a lock for this Job
*/
lockKey(): string;
@@ -328,6 +328,13 @@ declare namespace Bull {
*/
takeLock(): Promise<number | false>;
/**
* Extend the lock for this job.
*
* @param duration lock duration in milliseconds
*/
extendLock(duration: number): Promise<number>
/**
* Get job properties as Json Object
*/