vona-module-a-queue 5.0.31 → 5.0.33
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/dist/config/config.d.ts +0 -3
- package/dist/index.js +0 -8
- package/package.json +3 -3
package/dist/config/config.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BeanInfo, BeanBase, uuidv4, deepExtend, instanceDesp, beanFullNameFromOnionName, BeanSimple, BeanScopeBase, createBeanDecorator } from 'vona';
|
|
2
|
-
import { sleep } from '@cabloy/utils';
|
|
3
2
|
import * as Bull from 'bullmq';
|
|
4
3
|
import { Service, Scope } from 'vona-module-a-bean';
|
|
5
4
|
import { getRedisClientKeyPrefix } from 'vona-module-a-redis';
|
|
@@ -243,10 +242,6 @@ let ServiceQueue = (_dec$3 = Service(), _dec2$3 = BeanInfo({
|
|
|
243
242
|
async _queueEventsReady(queueQueue) {
|
|
244
243
|
if (queueQueue.queueEventsReady) return;
|
|
245
244
|
await queueQueue.queueEvents.waitUntilReady();
|
|
246
|
-
const waitUntilReady = this.scope.config.queueEvents.waitUntilReady;
|
|
247
|
-
if (waitUntilReady) {
|
|
248
|
-
await sleep(waitUntilReady);
|
|
249
|
-
}
|
|
250
245
|
queueQueue.queueEventsReady = true;
|
|
251
246
|
}
|
|
252
247
|
_combineQueueKey(info) {
|
|
@@ -320,9 +315,6 @@ function config(_app) {
|
|
|
320
315
|
lockDuration: 30 * 1000,
|
|
321
316
|
maxStalledCount: 1000,
|
|
322
317
|
stalledInterval: 10 * 1000
|
|
323
|
-
},
|
|
324
|
-
queueEvents: {
|
|
325
|
-
waitUntilReady: 200
|
|
326
318
|
}
|
|
327
319
|
};
|
|
328
320
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-module-a-queue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.33",
|
|
5
5
|
"title": "a-queue",
|
|
6
6
|
"vonaModule": {
|
|
7
7
|
"dependencies": {},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"optionsGlobalInterfaceName": "IDecoratorQueueOptions",
|
|
14
14
|
"optionsGlobalInterfaceFrom": "vona-module-a-queue",
|
|
15
15
|
"scopeResource": true,
|
|
16
|
-
"boilerplate": "
|
|
16
|
+
"boilerplate": "boilerplate"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"capabilities": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dist"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"bullmq": "^5.
|
|
44
|
+
"bullmq": "^5.66.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"clean-package": "^2.2.0",
|