exodus-framework 2.1.1004 → 2.1.1005
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/lib/app/exodus.d.ts.map +1 -1
- package/lib/app/exodus.js +7 -3
- package/package.json +1 -1
package/lib/app/exodus.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"exodus.d.ts","sourceRoot":"","sources":["../../src/app/exodus.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,OAAO,EAAE,MAAM,GAAG,CAAC;AAG1C,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,OAAO,YAAY,MAAM,YAAY,CAAC;AAWtC,cAAM,MAAO,SAAQ,OAAO;IAC1B,OAAO,CAAC,QAAQ,CAAY;IAC5B,OAAO,CAAC,cAAc,CAAkB;IACxC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC;gBAEX,QAAQ,EAAE,YAAY;IAUrB,KAAK;IAwBlB,OAAO,CAAC,cAAc;IAef,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO;YAGzB,YAAY;YAiBZ,YAAY;IAsB1B,MAAM,CAAC,YAAY,IAAI,IAAI;IAK3B,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM;IAM7B,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO;
|
1
|
+
{"version":3,"file":"exodus.d.ts","sourceRoot":"","sources":["../../src/app/exodus.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,OAAO,EAAE,MAAM,GAAG,CAAC;AAG1C,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,OAAO,YAAY,MAAM,YAAY,CAAC;AAWtC,cAAM,MAAO,SAAQ,OAAO;IAC1B,OAAO,CAAC,QAAQ,CAAY;IAC5B,OAAO,CAAC,cAAc,CAAkB;IACxC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC;gBAEX,QAAQ,EAAE,YAAY;IAUrB,KAAK;IAwBlB,OAAO,CAAC,cAAc;IAef,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO;YAGzB,YAAY;YAiBZ,YAAY;IAsB1B,MAAM,CAAC,YAAY,IAAI,IAAI;IAK3B,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM;IAM7B,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO;IAM1C,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO;IAMzC,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO;IAQ1C,SAAS,CAAC,0BAA0B,CAAC,GAAG,EAAE,KAAK;IAS/C,SAAS,CAAC,yBAAyB,CAAC,GAAG,EAAE,KAAK;IAW9C,SAAS,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAmBhF,SAAS,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAqB/E,OAAO,CAAC,mBAAmB;IAkBd,QAAQ,CAAC,MAAM,GAAE,MAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;YAGjD,gBAAgB;CAwF/B;AACD,eAAe,MAAM,CAAC"}
|
package/lib/app/exodus.js
CHANGED
@@ -113,19 +113,17 @@ class Exodus extends _managed.default {
|
|
113
113
|
//# SIGNAL HANDLERS
|
114
114
|
onSIGTERM(signal) {
|
115
115
|
super.onSIGTERM(signal);
|
116
|
-
this.log('Recebido SIGTERM. Iniciando graceful shutdown...', 'comment');
|
117
116
|
this.log('Processo encerrado pelo sistema', 'especial');
|
118
117
|
this.gracefulShutdown('SIGTERM');
|
119
118
|
}
|
120
119
|
onSIGINT(signal) {
|
121
120
|
super.onSIGINT(signal);
|
122
|
-
this.log('Recebido SIGINT (Ctrl+C). Iniciando graceful shutdown...', 'comment');
|
123
121
|
this.log('Processo encerrado pelo usuário', 'especial');
|
124
122
|
this.gracefulShutdown('SIGINT');
|
125
123
|
}
|
126
124
|
onSIGUSR2(signal) {
|
127
125
|
super.onSIGUSR2(signal);
|
128
|
-
this.log('
|
126
|
+
this.log('Processo encerrado via SIGUSR2', 'especial');
|
129
127
|
this.gracefulShutdown('SIGUSR2');
|
130
128
|
}
|
131
129
|
|
@@ -155,6 +153,9 @@ class Exodus extends _managed.default {
|
|
155
153
|
reason,
|
156
154
|
promise
|
157
155
|
}, msg);
|
156
|
+
promise.catch(() => {
|
157
|
+
// Promise já foi logada, apenas consumindo o erro para parar a propagação
|
158
|
+
});
|
158
159
|
|
159
160
|
// Para rejection críticas, também faz graceful shutdown
|
160
161
|
if (this.isCriticalRejection(reason)) {
|
@@ -169,6 +170,9 @@ class Exodus extends _managed.default {
|
|
169
170
|
reason,
|
170
171
|
promise
|
171
172
|
}, msg);
|
173
|
+
promise.catch(() => {
|
174
|
+
// Promise já foi logada, apenas consumindo o erro para parar a propagação
|
175
|
+
});
|
172
176
|
|
173
177
|
// Para rejection críticas, também faz graceful shutdown
|
174
178
|
if (this.isCriticalRejection(reason)) {
|