mirror of
https://github.com/OptimalBits/bull.git
synced 2026-07-02 00:17:41 +08:00
feat: add missing extendLock definition
and update lockKey doc
This commit is contained in:
committed by
Manuel Astudillo
parent
5f34bcebb6
commit
14432ff8a5
Vendored
+8
-1
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user