Skip to content

Commit

Permalink
Merge 5a7d6c7 into da53e20
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed Jan 15, 2021
2 parents da53e20 + 5a7d6c7 commit 86d4046
Show file tree
Hide file tree
Showing 12 changed files with 876 additions and 972 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ node_modules
coverage/
*.tgz
.nyc_output/
.vscode
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Changes

## 5.1.0

- Added transactional locking to maintenance queries as a safeguard from deadlocks under load.
- Removed maintenance events, `archived`, `deleted`, and `expired`.

## 5.0.8

- Retention policy applied to abandoned jobs in retry state.
Expand Down
11 changes: 0 additions & 11 deletions docs/usage.md
Expand Up @@ -10,8 +10,6 @@
- [Job table](#job-table)
- [Events](#events)
- [`error`](#error)
- [`archived`](#archived)
- [`expired`](#expired)
- [`monitor-states`](#monitor-states)
- [Static functions](#static-functions)
- [`string getConstructionPlans(schema)`](#string-getconstructionplansschema)
Expand Down Expand Up @@ -149,15 +147,6 @@ boss.on('error', error => logger.error(error));

> **Note: Since error events are only raised during internal housekeeping activities, they are not raised for direct API calls, where promise `catch()` handlers should be used.**

## `archived`

`archived` is raised each time 1 or more jobs are archived. The payload is an integer representing the number of jobs archived.

## `expired`

`expired` is raised each time 1 or more jobs are expired. The payload is an integer representing the number of jobs expired.

## `monitor-states`

The `monitor-states` event is conditionally raised based on the `monitorStateInterval` configuration setting and only emitted from `start()`. If passed during instance creation, it will provide a count of jobs in each state per interval. This could be useful for logging or even determining if the job system is handling its load.
Expand Down

0 comments on commit 86d4046

Please sign in to comment.