ac-bootstrap-bull 3.0.0 → 3.0.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/index.js +2 -3
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+
2
+ ## [3.0.1](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v3.0.0..v3.0.1) (2025-05-12 07:53:21)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **App:** Fixed error handling in case of resource locked | MP | [c778cff150825d3c3ab0c537200f02e770986bfd](https://github.com/admiralcloud/ac-bootstrap-bull/commit/c778cff150825d3c3ab0c537200f02e770986bfd)
8
+ Use error code 423 and a dedicated error message
9
+ Related issues:
10
+ ### Chores
11
+
12
+ * **App:** Updated packages | MP | [198889dc02b6b0de7781901a1448f4352f7b78e1](https://github.com/admiralcloud/ac-bootstrap-bull/commit/198889dc02b6b0de7781901a1448f4352f7b78e1)
13
+ Updated packages
14
+ Related issues:
1
15
 
2
16
  # [3.0.0](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.1.3..v3.0.0) (2025-05-06 18:07:40)
3
17
 
package/index.js CHANGED
@@ -259,14 +259,13 @@ module.exports = function(acapi) {
259
259
  return result
260
260
  }
261
261
  catch(e) {
262
- if (e === 423) {
262
+ if (e?.code === 423) {
263
263
  acapi.log.debug('%s | %s | %s | # %s | Already processing', functionName, functionIdentifier, queueName, jobId)
264
- throw e
265
264
  }
266
265
  else {
267
266
  acapi.log.error('%s | %s | %s | # %s | Failed %j', functionName, functionIdentifier, queueName, jobId, e?.message)
268
- throw e
269
267
  }
268
+ throw e
270
269
  }
271
270
  }
272
271
  const prepareProcessing = postProcessing
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ac-bootstrap-bull",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
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": "^4.0.0",
9
+ "ac-redislock": "^5.0.0",
10
10
  "bull": "^4.16.5",
11
11
  "ioredis": "^5.6.1",
12
12
  "lodash": "^4.17.21"