@yolo-croket-dev/core 1.7.5-slowquery.2 → 1.7.5-slowquery.5
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.
|
@@ -279,14 +279,9 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
279
279
|
// eslint-disable-next-line consistent-return
|
|
280
280
|
return next
|
|
281
281
|
.handle()
|
|
282
|
-
.pipe((0, operators_1.timeout)(1000 * 10),
|
|
283
|
-
(
|
|
284
|
-
|
|
285
|
-
const channel = rmq.getChannelRef();
|
|
286
|
-
const message = rmq.getMessage();
|
|
287
|
-
channel.nack(message, false, false);
|
|
288
|
-
return caught;
|
|
289
|
-
}), (0, operators_1.tap)({
|
|
282
|
+
.pipe((0, operators_1.timeout)(1000 * 10),
|
|
283
|
+
// timeout(1000 * 60 * 30), // 30분 타임아웃
|
|
284
|
+
(0, operators_1.tap)({
|
|
290
285
|
next: async (val) => {
|
|
291
286
|
val.isError = false;
|
|
292
287
|
// const duration = Date.now() - now;
|
|
@@ -307,6 +302,10 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
307
302
|
error: localErrorProcessor,
|
|
308
303
|
}), (0, operators_1.finalize)(() => {
|
|
309
304
|
this.gracefulShutdownService.popActiveInterceptors(execInterceptor);
|
|
305
|
+
}), (0, operators_1.catchError)(async (err) => {
|
|
306
|
+
console.log('err: ', err.name, err.message);
|
|
307
|
+
channel.nack(message, false, true);
|
|
308
|
+
console.log('nack 호출 (retry)');
|
|
310
309
|
}));
|
|
311
310
|
}
|
|
312
311
|
};
|