ac-bootstrap-bull 1.0.10 → 1.0.12
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 +35 -0
- package/index.js +5 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
<a name="1.0.12"></a>
|
|
2
|
+
|
|
3
|
+
## [1.0.12](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.11..v1.0.12) (2022-12-13 17:55:28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fix
|
|
7
|
+
|
|
8
|
+
* **App:** Fixed an issue when job is null | MP | [f96b61b97459241b0b401e96adc76a6a165331b9](https://github.com/admiralcloud/ac-bootstrap-bull/commit/f96b61b97459241b0b401e96adc76a6a165331b9)
|
|
9
|
+
In case job is null, we cannot call remove function
|
|
10
|
+
Related issues: [undefined/undefined#master](undefined/browse/master)
|
|
11
|
+
### Chores
|
|
12
|
+
|
|
13
|
+
* **App:** Updated packages | MP | [da7c4d5d9e3c6b21a1a7ddd457b4aa6c1b91b521](https://github.com/admiralcloud/ac-bootstrap-bull/commit/da7c4d5d9e3c6b21a1a7ddd457b4aa6c1b91b521)
|
|
14
|
+
Updated packages
|
|
15
|
+
Related issues: [undefined/undefined#master](undefined/browse/master)
|
|
16
|
+
<a name="1.0.11"></a>
|
|
17
|
+
|
|
18
|
+
## [1.0.11](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.10..v1.0.11) (2022-08-22 09:51:22)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fix
|
|
22
|
+
|
|
23
|
+
* **App:** Minor change in logging | MP | [8230da88e44c2bd035352ab7f64fdb103acd33df](https://github.com/admiralcloud/ac-bootstrap-bull/commit/8230da88e44c2bd035352ab7f64fdb103acd33df)
|
|
24
|
+
Improved logging
|
|
25
|
+
Related issues: [/issues#undefined](https://github.com//issues/undefined)
|
|
26
|
+
### Chores
|
|
27
|
+
|
|
28
|
+
* **App:** Updated packages | MP | [ddacc1d26029196d397794aebb6de1fbb780ecb1](https://github.com/admiralcloud/ac-bootstrap-bull/commit/ddacc1d26029196d397794aebb6de1fbb780ecb1)
|
|
29
|
+
Updated packages
|
|
30
|
+
Related issues: [undefined/undefined#master](undefined/browse/master)
|
|
31
|
+
### Chores
|
|
32
|
+
|
|
33
|
+
* **App:** Updated gitignore | MP | [fd5fd7e8f3605194abe702b67131ed79791d5bfa](https://github.com/admiralcloud/ac-bootstrap-bull/commit/fd5fd7e8f3605194abe702b67131ed79791d5bfa)
|
|
34
|
+
Ignore vscode settingss
|
|
35
|
+
Related issues: [undefined/undefined#master](undefined/browse/master)
|
|
1
36
|
<a name="1.0.10"></a>
|
|
2
37
|
|
|
3
38
|
## [1.0.10](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.9..v1.0.10) (2022-05-10 14:08:52)
|
package/index.js
CHANGED
|
@@ -87,6 +87,8 @@ module.exports = function(acapi) {
|
|
|
87
87
|
// create a bull instance for every jobList, to allow concurrency
|
|
88
88
|
_.forEach(_.get(params, 'jobLists'), jobList => {
|
|
89
89
|
const { queueName } = this.prepareQueue(jobList)
|
|
90
|
+
|
|
91
|
+
acapi.aclog.hrLine()
|
|
90
92
|
acapi.aclog.listing({ field: 'Queue', value: queueName })
|
|
91
93
|
this.jobLists.push(queueName)
|
|
92
94
|
|
|
@@ -96,13 +98,13 @@ module.exports = function(acapi) {
|
|
|
96
98
|
// this job's listener is on this API
|
|
97
99
|
acapi.bull[queueName].on('global:completed', _.get(params, 'handlers.global:completed')[_.get(jobList, 'jobList')])
|
|
98
100
|
acapi.bull[queueName].on('global:failed', _.get(params, 'handlers.global:failed', this.handleFailedJobs).bind(this, queueName))
|
|
99
|
-
acapi.aclog.listing({ field: '', value: '
|
|
101
|
+
acapi.aclog.listing({ field: 'Listener', value: 'Activated' })
|
|
100
102
|
}
|
|
101
103
|
if (_.get(jobList, 'worker')) {
|
|
102
104
|
// this job's worker is on this API (BatchProcessCollector[jobList])
|
|
103
105
|
let workerFN = _.get(params, 'worker')[_.get(jobList, 'jobList')]
|
|
104
106
|
workerFN(jobList)
|
|
105
|
-
acapi.aclog.listing({ field: '', value: '
|
|
107
|
+
acapi.aclog.listing({ field: 'Worker', value: 'Activated' })
|
|
106
108
|
}
|
|
107
109
|
if (_.get(jobList, 'autoClean')) {
|
|
108
110
|
acapi.bull[queueName].clean(_.get(jobList, 'autoClean', _.get(acapi.config, 'bull.autoClean')))
|
|
@@ -190,6 +192,7 @@ module.exports = function(acapi) {
|
|
|
190
192
|
const functionIdentifier = _.padEnd('removeJob', _.get(acapi.config, 'bull.log.functionIdentifierLength'))
|
|
191
193
|
if (_.isNil(job)) {
|
|
192
194
|
acapi.log.error('%s | %s | %s | Job invalid %j', functionName, functionIdentifier, queueName, job)
|
|
195
|
+
return
|
|
193
196
|
}
|
|
194
197
|
const jobId = _.get(job, 'id')
|
|
195
198
|
const jobListWatchKey = _.get(job, 'data.jobListWatchKey')
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ac-bootstrap-bull",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
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": "^2.0.
|
|
10
|
-
"async": "^3.2.
|
|
11
|
-
"bull": "^4.
|
|
12
|
-
"ioredis": "^5.
|
|
9
|
+
"ac-redislock": "^2.0.1",
|
|
10
|
+
"async": "^3.2.4",
|
|
11
|
+
"bull": "^4.10.2",
|
|
12
|
+
"ioredis": "^5.2.4",
|
|
13
13
|
"lodash": "^4.17.21"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"eslint": "^8.
|
|
16
|
+
"eslint": "^8.29.0"
|
|
17
17
|
}
|
|
18
18
|
}
|