ac-bootstrap-bull
Advanced tools
Comparing version 2.0.6 to 2.1.0
@@ -0,1 +1,16 @@ | ||
<a name="2.1.0"></a> | ||
# [2.1.0](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.0.6..v2.1.0) (2024-09-06 12:34:14) | ||
### Feature | ||
* **App:** Add parameter ignore for addJob | MP | [89bf456567bb16d7462948dfdf9e772931d7d549](https://github.com/admiralcloud/ac-bootstrap-bull/commit/89bf456567bb16d7462948dfdf9e772931d7d549) | ||
This way it is possible to disbale localDevelopment prefix for Bull lists. | ||
Related issues: [undefined/undefined#master](undefined/browse/master) | ||
### Chores | ||
* **App:** Updated packages | MP | [1b34ab342c7147d531ec24a8ae7ac084bb786a4a](https://github.com/admiralcloud/ac-bootstrap-bull/commit/1b34ab342c7147d531ec24a8ae7ac084bb786a4a) | ||
Updated packages | ||
Related issues: [undefined/undefined#master](undefined/browse/master) | ||
<a name="2.0.6"></a> | ||
@@ -2,0 +17,0 @@ |
@@ -26,5 +26,6 @@ const Queue = require('bull') | ||
const jobListConfig = _.find(_.get(acapi.config, configPath + '.jobLists'), { jobList }) | ||
const ignore = _.get(params, 'ignore') | ||
if (!jobListConfig) return false | ||
const queueName = _.get(params, 'customJobList.environment', (acapi.config.environment + (acapi.config.localDevelopment ? acapi.config.localDevelopment : ''))) + '.' + jobList | ||
const queueName = _.get(params, 'customJobList.environment', (acapi.config.environment + ((!_.get(ignore, 'localDevelopment') && acapi.config.localDevelopment) ? acapi.config.localDevelopment : ''))) + '.' + jobList | ||
return { queueName, jobListConfig } | ||
@@ -155,3 +156,3 @@ } | ||
const functionIdentifier = _.padEnd('addJob', _.get(acapi.config, 'bull.log.functionIdentifierLength')) | ||
const { queueName } = this.prepareQueue({ jobList, configPath: _.get(params, 'configPath'), customJobList: _.get(params, 'customJobList') }) | ||
const { queueName } = this.prepareQueue({ jobList, configPath: _.get(params, 'configPath'), customJobList: _.get(params, 'customJobList'), ignore: _.get(params, 'ignore') }) | ||
if (!queueName) return cb({ message: 'jobListNotDefined', additionalInfo: { jobList } }) | ||
@@ -158,0 +159,0 @@ |
{ | ||
"name": "ac-bootstrap-bull", | ||
"version": "2.0.6", | ||
"version": "2.1.0", | ||
"description": "Bull helper", | ||
@@ -10,4 +10,4 @@ "repository": "admiralcloud/ac-bootstrap-bull", | ||
"ac-redislock": "^3.0.0", | ||
"async": "^3.2.5", | ||
"bull": "^4.13.0", | ||
"async": "^3.2.6", | ||
"bull": "^4.16.2", | ||
"ioredis": "^5.4.1", | ||
@@ -17,4 +17,4 @@ "lodash": "^4.17.21" | ||
"devDependencies": { | ||
"eslint": "^9.4.0" | ||
"eslint": "^9.9.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27272
293
Updatedasync@^3.2.6
Updatedbull@^4.16.2