ac-bootstrap-bull 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/index.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
## [3.0.2](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v3.0.1..v3.0.2) (2025-05-14 11:43:39)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fix
|
|
6
|
+
|
|
7
|
+
* **App:** Postprocessing: Throw error only if real error | MP | [35b831acbb299adadaa599d829b39494da6b1b44](https://github.com/admiralcloud/ac-bootstrap-bull/commit/35b831acbb299adadaa599d829b39494da6b1b44)
|
|
8
|
+
If code 423 just log but do not throw an error
|
|
9
|
+
Related issues:
|
|
10
|
+
### Chores
|
|
11
|
+
|
|
12
|
+
* **App:** Updated packages | MP | [0657c0c1b8e2e8842b14824768e690b173a8d46e](https://github.com/admiralcloud/ac-bootstrap-bull/commit/0657c0c1b8e2e8842b14824768e690b173a8d46e)
|
|
13
|
+
Updated packages
|
|
14
|
+
Related issues:
|
|
15
|
+
|
|
16
|
+
## [3.0.1](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v3.0.0..v3.0.1) (2025-05-12 07:53:21)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fix
|
|
20
|
+
|
|
21
|
+
* **App:** Fixed error handling in case of resource locked | MP | [c778cff150825d3c3ab0c537200f02e770986bfd](https://github.com/admiralcloud/ac-bootstrap-bull/commit/c778cff150825d3c3ab0c537200f02e770986bfd)
|
|
22
|
+
Use error code 423 and a dedicated error message
|
|
23
|
+
Related issues:
|
|
24
|
+
### Chores
|
|
25
|
+
|
|
26
|
+
* **App:** Updated packages | MP | [198889dc02b6b0de7781901a1448f4352f7b78e1](https://github.com/admiralcloud/ac-bootstrap-bull/commit/198889dc02b6b0de7781901a1448f4352f7b78e1)
|
|
27
|
+
Updated packages
|
|
28
|
+
Related issues:
|
|
1
29
|
|
|
2
30
|
# [3.0.0](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.1.3..v3.0.0) (2025-05-06 18:07:40)
|
|
3
31
|
|
package/index.js
CHANGED
|
@@ -3,6 +3,7 @@ const _ = require('lodash')
|
|
|
3
3
|
const Redis = require('ioredis')
|
|
4
4
|
const redisLock = require('ac-redislock')
|
|
5
5
|
const { v4: uuidV4 } = require('uuid')
|
|
6
|
+
const { setTimeout: sleep } = require('node:timers/promises')
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
module.exports = function(acapi) {
|
|
@@ -259,13 +260,12 @@ module.exports = function(acapi) {
|
|
|
259
260
|
return result
|
|
260
261
|
}
|
|
261
262
|
catch(e) {
|
|
262
|
-
if (e === 423) {
|
|
263
|
+
if (e?.code === 423) {
|
|
263
264
|
acapi.log.debug('%s | %s | %s | # %s | Already processing', functionName, functionIdentifier, queueName, jobId)
|
|
264
|
-
throw e
|
|
265
265
|
}
|
|
266
266
|
else {
|
|
267
267
|
acapi.log.error('%s | %s | %s | # %s | Failed %j', functionName, functionIdentifier, queueName, jobId, e?.message)
|
|
268
|
-
throw e
|
|
268
|
+
throw e
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ac-bootstrap-bull",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Bull helper",
|
|
5
5
|
"repository": "admiralcloud/ac-bootstrap-bull",
|
|
6
6
|
"author": "Mark Poepping <mark.poepping@admiralcloud.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"ac-redislock": "^
|
|
9
|
+
"ac-redislock": "^5.0.1",
|
|
10
10
|
"bull": "^4.16.5",
|
|
11
11
|
"ioredis": "^5.6.1",
|
|
12
12
|
"lodash": "^4.17.21"
|