vona-module-a-queue 5.0.22 → 5.0.24
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/index.js +2 -2
- package/dist/types/queue.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -317,11 +317,11 @@ const __ThisModule__ = 'a-queue';
|
|
|
317
317
|
|
|
318
318
|
class Monkey extends BeanSimple {
|
|
319
319
|
async appClose() {
|
|
320
|
-
const scopeSelf = this.
|
|
320
|
+
const scopeSelf = this.app.scope(__ThisModule__);
|
|
321
321
|
await scopeSelf.service.queue.clearWorkers();
|
|
322
322
|
}
|
|
323
323
|
async appClosed() {
|
|
324
|
-
const scopeSelf = this.
|
|
324
|
+
const scopeSelf = this.app.scope(__ThisModule__);
|
|
325
325
|
await scopeSelf.service.queue.clearQueues();
|
|
326
326
|
}
|
|
327
327
|
}
|
package/dist/types/queue.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type Redlock from '@sesamecare-oss/redlock';
|
|
|
2
2
|
import type * as Bull from 'bullmq';
|
|
3
3
|
import type { OmitNever } from 'vona';
|
|
4
4
|
import type { IGeneralInfoOptions } from 'vona-module-a-executor';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ServiceOnion, TypeOnionOptionsEnableSimple } from 'vona-module-a-onion';
|
|
6
6
|
export interface IQueuePushOptions extends IGeneralInfoOptions {
|
|
7
7
|
queueNameSub?: string;
|
|
8
8
|
jobName?: string;
|
|
@@ -45,7 +45,7 @@ export interface IQueueCallbacks {
|
|
|
45
45
|
}
|
|
46
46
|
export interface IQueueRecord {
|
|
47
47
|
}
|
|
48
|
-
export interface IDecoratorQueueOptions extends
|
|
48
|
+
export interface IDecoratorQueueOptions extends TypeOnionOptionsEnableSimple {
|
|
49
49
|
concurrency?: boolean;
|
|
50
50
|
transaction?: boolean;
|
|
51
51
|
options?: {
|