Skip to content

Commit

Permalink
feat: add missing extendLock definition
Browse files Browse the repository at this point in the history
and update lockKey doc
  • Loading branch information
Smankusors authored and manast committed Dec 18, 2023
1 parent 5f34bce commit 14432ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
*/
Expand Down

0 comments on commit 14432ff

Please sign in to comment.