Skip to content

Commit

Permalink
chore(release): 1.26.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.26.0](v1.25.2...v1.26.0) (2021-05-17)

### Features

* **custombackoff:** provide job as third parameter ([ddaf8dc](ddaf8dc))
  • Loading branch information
semantic-release-bot committed May 17, 2021
1 parent ddaf8dc commit 2656566
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/gitbook/api/bullmq.backofffunction.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
<b>Signature:</b>

```typescript
export declare type BackoffFunction = (attemptsMade?: number, err?: Error) => number;
export declare type BackoffFunction = (attemptsMade?: number, err?: Error, job?: Job) => number;
```
<b>References:</b> [Job](./bullmq.job.md)

3 changes: 2 additions & 1 deletion docs/gitbook/api/bullmq.backoffs.calculate.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<b>Signature:</b>

```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
Expand All @@ -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) | |

<b>Returns:</b>

Expand Down
2 changes: 1 addition & 1 deletion docs/gitbook/api/bullmq.backoffs.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export declare class Backoffs

| Method | Modifiers | Description |
| --- | --- | --- |
| [calculate(backoff, attemptsMade, customStrategies, err)](./bullmq.backoffs.calculate.md) | <code>static</code> | |
| [calculate(backoff, attemptsMade, customStrategies, err, job)](./bullmq.backoffs.calculate.md) | <code>static</code> | |
| [normalize(backoff)](./bullmq.backoffs.normalize.md) | <code>static</code> | |

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 2656566

Please sign in to comment.