@pristine-ts/scheduling 0.0.371 → 0.0.373
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.
|
@@ -53,23 +53,25 @@ let SchedulerManager = class SchedulerManager {
|
|
|
53
53
|
*/
|
|
54
54
|
runTasks() {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
this.logHandler.debug("Starting the execution of the tasks.", { scheduledTasks: this.scheduledTasks }, scheduling_module_keyname_1.SchedulingModuleKeyname);
|
|
56
|
+
this.logHandler.debug("SchedulerManager: Starting the execution of the tasks.", { extra: { scheduledTasks: this.scheduledTasks } }, scheduling_module_keyname_1.SchedulingModuleKeyname);
|
|
57
57
|
return new Promise(resolve => {
|
|
58
58
|
const promises = [];
|
|
59
59
|
this.scheduledTasks.forEach(scheduledTask => {
|
|
60
60
|
promises.push(scheduledTask.run());
|
|
61
61
|
});
|
|
62
|
-
this.logHandler.debug("Completed triggering all the tasks.", { scheduledTasks: this.scheduledTasks }, scheduling_module_keyname_1.SchedulingModuleKeyname);
|
|
62
|
+
this.logHandler.debug("SchedulerManager: Completed triggering all the tasks.", { extra: { scheduledTasks: this.scheduledTasks } }, scheduling_module_keyname_1.SchedulingModuleKeyname);
|
|
63
63
|
Promise.allSettled(promises).then(results => {
|
|
64
64
|
results.forEach(result => {
|
|
65
65
|
if (result.status === 'fulfilled') {
|
|
66
|
-
this.logHandler.debug("Scheduled Task Fulfilled", { result }, scheduling_module_keyname_1.SchedulingModuleKeyname);
|
|
66
|
+
this.logHandler.debug("SchedulerManager: Scheduled Task Fulfilled.", { extra: { result } }, scheduling_module_keyname_1.SchedulingModuleKeyname);
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
|
-
this.logHandler.error("Scheduled Task Error", {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
this.logHandler.error("SchedulerManager: Scheduled Task Error.", {
|
|
70
|
+
extra: {
|
|
71
|
+
result: {
|
|
72
|
+
status: result.status,
|
|
73
|
+
reason: result.reason + "",
|
|
74
|
+
}
|
|
73
75
|
}
|
|
74
76
|
}, scheduling_module_keyname_1.SchedulingModuleKeyname);
|
|
75
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.manager.js","sourceRoot":"","sources":["../../../../src/managers/scheduler.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuD;AAEvD,gDAAgF;AAChF,4EAAqE;AAIrE;;;;;;;;GAQG;AAII,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAEzB;;;;;;;;OAQG;IACH,YAAgF,cAAwC,EAC5D,UAA+B;QADX,mBAAc,GAAd,cAAc,CAA0B;QAC5D,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED;;OAEG;IACG,QAAQ;;YACV,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"scheduler.manager.js","sourceRoot":"","sources":["../../../../src/managers/scheduler.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuD;AAEvD,gDAAgF;AAChF,4EAAqE;AAIrE;;;;;;;;GAQG;AAII,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAEzB;;;;;;;;OAQG;IACH,YAAgF,cAAwC,EAC5D,UAA+B;QADX,mBAAc,GAAd,cAAc,CAA0B;QAC5D,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED;;OAEG;IACG,QAAQ;;YACV,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,wDAAwD,EAAE,EAAC,KAAK,EAAE,EAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAC,EAAC,EAAE,mDAAuB,CAAC,CAAC;YAEzJ,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBACzB,MAAM,QAAQ,GAAoB,EAAE,CAAC;gBAErC,IAAI,CAAC,cAAc,CA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qB,CAAC,CAAA;;GAZjC,gBAAgB,CAmD5B"}
|
|
@@ -50,23 +50,25 @@ let SchedulerManager = class SchedulerManager {
|
|
|
50
50
|
*/
|
|
51
51
|
runTasks() {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
this.logHandler.debug("Starting the execution of the tasks.", { scheduledTasks: this.scheduledTasks }, SchedulingModuleKeyname);
|
|
53
|
+
this.logHandler.debug("SchedulerManager: Starting the execution of the tasks.", { extra: { scheduledTasks: this.scheduledTasks } }, SchedulingModuleKeyname);
|
|
54
54
|
return new Promise(resolve => {
|
|
55
55
|
const promises = [];
|
|
56
56
|
this.scheduledTasks.forEach(scheduledTask => {
|
|
57
57
|
promises.push(scheduledTask.run());
|
|
58
58
|
});
|
|
59
|
-
this.logHandler.debug("Completed triggering all the tasks.", { scheduledTasks: this.scheduledTasks }, SchedulingModuleKeyname);
|
|
59
|
+
this.logHandler.debug("SchedulerManager: Completed triggering all the tasks.", { extra: { scheduledTasks: this.scheduledTasks } }, SchedulingModuleKeyname);
|
|
60
60
|
Promise.allSettled(promises).then(results => {
|
|
61
61
|
results.forEach(result => {
|
|
62
62
|
if (result.status === 'fulfilled') {
|
|
63
|
-
this.logHandler.debug("Scheduled Task Fulfilled", { result }, SchedulingModuleKeyname);
|
|
63
|
+
this.logHandler.debug("SchedulerManager: Scheduled Task Fulfilled.", { extra: { result } }, SchedulingModuleKeyname);
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
this.logHandler.error("Scheduled Task Error", {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
this.logHandler.error("SchedulerManager: Scheduled Task Error.", {
|
|
67
|
+
extra: {
|
|
68
|
+
result: {
|
|
69
|
+
status: result.status,
|
|
70
|
+
reason: result.reason + "",
|
|
71
|
+
}
|
|
70
72
|
}
|
|
71
73
|
}, SchedulingModuleKeyname);
|
|
72
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.manager.js","sourceRoot":"","sources":["../../../../src/managers/scheduler.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAC,YAAY,EAAE,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAIrE;;;;;;;;GAQG;AAII,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAEzB;;;;;;;;OAQG;IACH,YAAgF,cAAwC,EAC5D,UAA+B;QADX,mBAAc,GAAd,cAAc,CAA0B;QAC5D,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED;;OAEG;IACG,QAAQ;;YACV,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"scheduler.manager.js","sourceRoot":"","sources":["../../../../src/managers/scheduler.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAC,YAAY,EAAE,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAIrE;;;;;;;;GAQG;AAII,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAEzB;;;;;;;;OAQG;IACH,YAAgF,cAAwC,EAC5D,UAA+B;QADX,mBAAc,GAAd,cAAc,CAA0B;QAC5D,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED;;OAEG;IACG,QAAQ;;YACV,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,wDAAwD,EAAE,EAAC,KAAK,EAAE,EAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAC,EAAC,EAAE,uBAAuB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WAAA,SAAS,CAAC,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACjD,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;;GAZjC,gBAAgB,CAmD5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/scheduling",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.373",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/scheduling.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/scheduling.module.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pristine-ts/common": "^0.0.
|
|
24
|
-
"@pristine-ts/core": "^0.0.
|
|
25
|
-
"@pristine-ts/logging": "^0.0.
|
|
23
|
+
"@pristine-ts/common": "^0.0.373",
|
|
24
|
+
"@pristine-ts/core": "^0.0.373",
|
|
25
|
+
"@pristine-ts/logging": "^0.0.373"
|
|
26
26
|
},
|
|
27
27
|
"jest": {
|
|
28
28
|
"transform": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"src/*.{js,ts}"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "e6de9872d5d6c2c69f4a225dd986595cb8bc2b51"
|
|
62
62
|
}
|