diff --git a/docs/gitbook/api/bullmq.backofffunction.md b/docs/gitbook/api/bullmq.backofffunction.md index e9ab829ae5..254e753088 100644 --- a/docs/gitbook/api/bullmq.backofffunction.md +++ b/docs/gitbook/api/bullmq.backofffunction.md @@ -7,5 +7,7 @@ Signature: ```typescript -export declare type BackoffFunction = (attemptsMade?: number, err?: Error) => number; +export declare type BackoffFunction = (attemptsMade?: number, err?: Error, job?: Job) => number; ``` +References: [Job](./bullmq.job.md) + diff --git a/docs/gitbook/api/bullmq.backoffs.calculate.md b/docs/gitbook/api/bullmq.backoffs.calculate.md index 4de461a304..b65986281d 100644 --- a/docs/gitbook/api/bullmq.backoffs.calculate.md +++ b/docs/gitbook/api/bullmq.backoffs.calculate.md @@ -7,7 +7,7 @@ Signature: ```typescript -static calculate(backoff: BackoffOptions, attemptsMade: number, customStrategies: Strategies, err: Error): number; +static calculate(backoff: BackoffOptions, attemptsMade: number, customStrategies: Strategies, err: Error, job: Job): number; ``` ## Parameters @@ -18,6 +18,7 @@ static calculate(backoff: BackoffOptions, attemptsMade: number, customStrategies | attemptsMade | number | | | customStrategies | [Strategies](./bullmq.strategies.md) | | | err | Error | | +| job | [Job](./bullmq.job.md) | | Returns: diff --git a/docs/gitbook/api/bullmq.backoffs.md b/docs/gitbook/api/bullmq.backoffs.md index 628b94c8b4..0dee0dc229 100644 --- a/docs/gitbook/api/bullmq.backoffs.md +++ b/docs/gitbook/api/bullmq.backoffs.md @@ -20,6 +20,6 @@ export declare class Backoffs | Method | Modifiers | Description | | --- | --- | --- | -| [calculate(backoff, attemptsMade, customStrategies, err)](./bullmq.backoffs.calculate.md) | static | | +| [calculate(backoff, attemptsMade, customStrategies, err, job)](./bullmq.backoffs.calculate.md) | static | | | [normalize(backoff)](./bullmq.backoffs.normalize.md) | static | | diff --git a/package.json b/package.json index fc90e8ac1c..738631302f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bullmq", - "version": "1.25.2", + "version": "1.26.0", "description": "Queue for messages and jobs based on Redis", "main": "dist/index.js", "types": "dist/index.d.ts",