Skip to content

Commit

Permalink
chore(release): 1.24.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.24.0](v1.23.1...v1.24.0) (2021-05-03)

### Features

* add option for non-blocking getNextJob ([13ce2cf](13ce2cf))
  • Loading branch information
semantic-release-bot committed May 3, 2021
1 parent 13ce2cf commit b75b4f1
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docs/gitbook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.24.0](https://github.com/taskforcesh/bullmq/compare/v1.23.1...v1.24.0) (2021-05-03)


### Features

* add option for non-blocking getNextJob ([13ce2cf](https://github.com/taskforcesh/bullmq/commit/13ce2cfd4ccd64f45567df31de11af95b0fe67d9))

## [1.23.1](https://github.com/taskforcesh/bullmq/compare/v1.23.0...v1.23.1) (2021-05-03)


Expand Down
11 changes: 11 additions & 0 deletions docs/gitbook/api/bullmq.getnextjoboptions.block.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; [GetNextJobOptions](./bullmq.getnextjoboptions.md) &gt; [block](./bullmq.getnextjoboptions.block.md)

## GetNextJobOptions.block property

<b>Signature:</b>

```typescript
block?: boolean;
```
18 changes: 18 additions & 0 deletions docs/gitbook/api/bullmq.getnextjoboptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [bullmq](./bullmq.md) &gt; [GetNextJobOptions](./bullmq.getnextjoboptions.md)

## GetNextJobOptions interface

<b>Signature:</b>

```typescript
export interface GetNextJobOptions
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [block?](./bullmq.getnextjoboptions.block.md) | boolean | <i>(Optional)</i> |

1 change: 1 addition & 0 deletions docs/gitbook/api/bullmq.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
| [BackoffOptions](./bullmq.backoffoptions.md) | Settings for backing off failed jobs. |
| [ChildProcessExt](./bullmq.childprocessext.md) | |
| [FlowJob](./bullmq.flowjob.md) | |
| [GetNextJobOptions](./bullmq.getnextjoboptions.md) | |
| [JobJson](./bullmq.jobjson.md) | |
| [JobJsonRaw](./bullmq.jobjsonraw.md) | |
| [JobNode](./bullmq.jobnode.md) | |
Expand Down
3 changes: 2 additions & 1 deletion docs/gitbook/api/bullmq.worker.getnextjob.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ Returns a promise that resolves to the next job in queue.
<b>Signature:</b>

```typescript
getNextJob(token: string): Promise<Job<any, any, string>>;
getNextJob(token: string, { block }?: GetNextJobOptions): Promise<Job<any, any, string>>;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| token | string | worker token to be assigned to retrieved job |
| { block } | [GetNextJobOptions](./bullmq.getnextjoboptions.md) | |

<b>Returns:</b>

Expand Down
2 changes: 1 addition & 1 deletion docs/gitbook/api/bullmq.worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export declare class Worker<T = any, R = any, N extends string = string> extends
| Method | Modifiers | Description |
| --- | --- | --- |
| [close(force)](./bullmq.worker.close.md) | | |
| [getNextJob(token)](./bullmq.worker.getnextjob.md) | | Returns a promise that resolves to the next job in queue. |
| [getNextJob(token, { block })](./bullmq.worker.getnextjob.md) | | Returns a promise that resolves to the next job in queue. |
| [isPaused()](./bullmq.worker.ispaused.md) | | |
| [pause(doNotWaitActive)](./bullmq.worker.pause.md) | | Pauses the processing of this queue only for this worker. |
| [processJob(job, token)](./bullmq.worker.processjob.md) | | |
Expand Down
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.23.1",
"version": "1.24.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 b75b4f1

Please sign in to comment.