Skip to content

Commit

Permalink
chore(release): 1.40.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.40.0](v1.39.5...v1.40.0) (2021-07-22)

### Features

* **worker:** retry with delay errors in run loop ([409fe7f](409fe7f))
  • Loading branch information
semantic-release-bot committed Jul 22, 2021
1 parent 3eff55b commit a4984ee
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/gitbook/api/bullmq.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
| [RedisConnection](./bullmq.redisconnection.md) | |
| [Repeat](./bullmq.repeat.md) | |
| [Scripts](./bullmq.scripts.md) | |
| [Worker](./bullmq.worker.md) | |
| [Worker](./bullmq.worker.md) | This class represents a worker that is able to process jobs from the queue. As soon as the class is instantiated it will start processing jobs. |

## Enumerations

Expand Down
8 changes: 7 additions & 1 deletion docs/gitbook/api/bullmq.worker.close.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## Worker.close() method

Closes the worker and related redis connections.

This method waits for current jobs to finalize before returning.

<b>Signature:</b>

```typescript
Expand All @@ -14,9 +18,11 @@ close(force?: boolean): Promise<void>;

| Parameter | Type | Description |
| --- | --- | --- |
| force | boolean | |
| force | boolean | Use force boolean parameter if you do not want to wait for current jobs to be processed. |

<b>Returns:</b>

Promise&lt;void&gt;

Promise that resolves when the worker has been closed.

4 changes: 4 additions & 0 deletions docs/gitbook/api/bullmq.worker.ispaused.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## Worker.isPaused() method

Checks if worker is paused.

<b>Signature:</b>

```typescript
Expand All @@ -13,3 +15,5 @@ isPaused(): boolean;

boolean

true if worker is paused, false otherwise.

4 changes: 4 additions & 0 deletions docs/gitbook/api/bullmq.worker.isrunning.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## Worker.isRunning() method

Checks if worker is currently running.

<b>Signature:</b>

```typescript
Expand All @@ -13,3 +15,5 @@ isRunning(): boolean;

boolean

true if worker is running, false otherwise.

2 changes: 2 additions & 0 deletions docs/gitbook/api/bullmq.worker.resume.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## Worker.resume() method

Resumes processing of this worker (if paused).

<b>Signature:</b>

```typescript
Expand Down
2 changes: 2 additions & 0 deletions docs/gitbook/api/bullmq.worker.waituntilready.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## Worker.waitUntilReady() method

Waits until the worker is ready to start processing jobs. In general only useful when writing tests.

<b>Signature:</b>

```typescript
Expand Down
1 change: 1 addition & 0 deletions docs/gitbook/api/bullmq.workeroptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface WorkerOptions extends QueueBaseOptions
| [limiter?](./bullmq.workeroptions.limiter.md) | [RateLimiterOptions](./bullmq.ratelimiteroptions.md) | <i>(Optional)</i> |
| [lockDuration?](./bullmq.workeroptions.lockduration.md) | number | <i>(Optional)</i> |
| [lockRenewTime?](./bullmq.workeroptions.lockrenewtime.md) | number | <i>(Optional)</i> |
| [runRetryDelay?](./bullmq.workeroptions.runretrydelay.md) | number | <i>(Optional)</i> |
| [settings?](./bullmq.workeroptions.settings.md) | [AdvancedOptions](./bullmq.advancedoptions.md) | <i>(Optional)</i> |
| [skipDelayCheck?](./bullmq.workeroptions.skipdelaycheck.md) | boolean | <i>(Optional)</i> |
11 changes: 11 additions & 0 deletions docs/gitbook/api/bullmq.workeroptions.runretrydelay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [bullmq](./bullmq.md) &gt; [WorkerOptions](./bullmq.workeroptions.md) &gt; [runRetryDelay](./bullmq.workeroptions.runretrydelay.md)

## WorkerOptions.runRetryDelay property

<b>Signature:</b>

```typescript
runRetryDelay?: number;
```
8 changes: 7 additions & 1 deletion docs/gitbook/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.40.0](https://github.com/taskforcesh/bullmq/compare/v1.39.5...v1.40.0) (2021-07-22)


### Features

* **worker:** retry with delay errors in run loop ([409fe7f](https://github.com/taskforcesh/bullmq/commit/409fe7fc09b87b7916a3362a463bb9e0f17ecea8))

## [1.39.5](https://github.com/taskforcesh/bullmq/compare/v1.39.4...v1.39.5) (2021-07-21)

### Bug Fixes
Expand Down Expand Up @@ -871,4 +878,3 @@
* Introduced animals into the world, we believe they're going to be a neat addition.

#### 4.0.0-beta.0

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.39.5",
"version": "1.40.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 a4984ee

Please sign in to comment.