@servicelabsco/nestjs-utility-services 1.0.156 → 1.0.157
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.
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
exports.EventQueueCommand = void 0;
|
22
22
|
const common_1 = require("@nestjs/common");
|
23
|
-
const
|
23
|
+
const nestjs_console_1 = require("nestjs-console");
|
24
24
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
25
25
|
const event_queue_service_1 = require("../services/event.queue.service");
|
26
26
|
const date_util_1 = require("./../../common/libraries/date.util");
|
@@ -43,7 +43,7 @@ let EventQueueCommand = class EventQueueCommand {
|
|
43
43
|
yield this.queueService.sleep(2000);
|
44
44
|
if (pendingEvents.length)
|
45
45
|
yield this.processEvents(pendingEvents);
|
46
|
-
|
46
|
+
global.console.log(`[${date_util_1.DateUtil.getDateTimeInFormat()}][events] ${this.counter} since ${this.startTimeIdentifier} ${date_util_1.DateUtil.now() - this.start_time}s`);
|
47
47
|
}
|
48
48
|
});
|
49
49
|
}
|
@@ -78,9 +78,9 @@ let EventQueueCommand = class EventQueueCommand {
|
|
78
78
|
}
|
79
79
|
};
|
80
80
|
__decorate([
|
81
|
-
(0,
|
81
|
+
(0, nestjs_console_1.Command)({
|
82
82
|
command: 'queue:work',
|
83
|
-
|
83
|
+
description: 'push the queue from normal db to job',
|
84
84
|
}),
|
85
85
|
__metadata("design:type", Function),
|
86
86
|
__metadata("design:paramtypes", []),
|
@@ -88,6 +88,7 @@ __decorate([
|
|
88
88
|
], EventQueueCommand.prototype, "process", null);
|
89
89
|
EventQueueCommand = __decorate([
|
90
90
|
(0, common_1.Injectable)(),
|
91
|
+
(0, nestjs_console_1.Console)(),
|
91
92
|
__metadata("design:paramtypes", [queue_service_1.QueueService, event_queue_service_1.EventQueueService])
|
92
93
|
], EventQueueCommand);
|
93
94
|
exports.EventQueueCommand = EventQueueCommand;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"event.queue.command.js","sourceRoot":"","sources":["../../../src/system/commands/event.queue.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,
|
1
|
+
{"version":3,"file":"event.queue.command.js","sourceRoot":"","sources":["../../../src/system/commands/event.queue.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,mDAAkD;AAClD,gFAA4E;AAE5E,yEAAoE;AACpE,kEAA8D;AAG9D,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAmB1B,YAA6B,YAA0B,EAAmB,iBAAoC;QAAjF,iBAAY,GAAZ,YAAY,CAAc;QAAmB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAlBtG,YAAO,GAAG,CAAC,CAAC;QACZ,eAAU,GAAG,oBAAQ,CAAC,GAAG,EAAE,CAAC;QAC5B,wBAAmB,GAAG,oBAAQ,CAAC,mBAAmB,EAAE,CAAC;QAQrD,WAAM,GAAW,IAAI,eAAM,CAAC,YAAY,CAAC,CAAC;IAQ+D,CAAC;IAM5G,OAAO;;YACT,OAAO,IAAI,EAAE;gBACT,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;gBAEhC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAE5B,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,EAAE,CAAC;gBAErE,IAAI,CAAC,aAAa,CAAC,MAAM;oBAAE,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAE/D,IAAI,aAAa,CAAC,MAAM;oBAAE,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;gBAElE,MAAM,CAAC,OAAO,CAAC,GAAG,CACd,IAAI,oBAAQ,CAAC,mBAAmB,EAAE,aAAa,I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