From 14432ff8a5e743d97c82a360c9d6a92204b1a684 Mon Sep 17 00:00:00 2001 From: "Antony K. S" Date: Thu, 19 Oct 2023 09:38:43 +0700 Subject: [PATCH] feat: add missing extendLock definition and update lockKey doc --- index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index d6c000899..07e3f14e8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -314,7 +314,7 @@ declare namespace Bull { promote(): Promise; /** - * 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; + /** + * Extend the lock for this job. + * + * @param duration lock duration in milliseconds + */ + extendLock(duration: number): Promise + /** * Get job properties as Json Object */