@yolo-croket-dev/core 1.7.5-slowquery.1 → 1.7.5-slowquery.2
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,8 +279,14 @@ 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 *
|
|
283
|
-
(0, operators_1.catchError)(
|
|
282
|
+
.pipe((0, operators_1.timeout)(1000 * 10), // 30분 타임아웃
|
|
283
|
+
(0, operators_1.catchError)((err, caught) => {
|
|
284
|
+
console.log('on catchError err: ', err.name, err.message);
|
|
285
|
+
const channel = rmq.getChannelRef();
|
|
286
|
+
const message = rmq.getMessage();
|
|
287
|
+
channel.nack(message, false, false);
|
|
288
|
+
return caught;
|
|
289
|
+
}), (0, operators_1.tap)({
|
|
284
290
|
next: async (val) => {
|
|
285
291
|
val.isError = false;
|
|
286
292
|
// const duration = Date.now() - now;
|