@yolo-croket-dev/core 1.7.5-slowquery.1 → 1.7.5-slowquery.3

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.
@@ -160,6 +160,7 @@ let RPCInterceptor = class RPCInterceptor {
160
160
  // traceId,
161
161
  // method,
162
162
  // };
163
+ console.log('reDeliveryCount: ', reDeliveryCount, 'staticRetryCount: ', staticRetryCount);
163
164
  /** consume 메시지 전부 cancel */
164
165
  if (this.gracefulShutdownService.isApplicationExit) {
165
166
  msaLogger.debug('RPCInterceptor isApplicationExit called', { traceId: 'IS_APPLICATION_EXIT' });
@@ -279,8 +280,14 @@ let RPCInterceptor = class RPCInterceptor {
279
280
  // eslint-disable-next-line consistent-return
280
281
  return next
281
282
  .handle()
282
- .pipe((0, operators_1.timeout)(1000 * 30), // 30분 타임아웃
283
- (0, operators_1.catchError)(localErrorProcessor), (0, operators_1.tap)({
283
+ .pipe((0, operators_1.timeout)(1000 * 10), // 30분 타임아웃
284
+ (0, operators_1.catchError)((err, caught) => {
285
+ console.log('on catchError err: ', err.name, err.message);
286
+ const channel = rmq.getChannelRef();
287
+ const message = rmq.getMessage();
288
+ channel.nack(message, false, false);
289
+ return caught;
290
+ }), (0, operators_1.tap)({
284
291
  next: async (val) => {
285
292
  val.isError = false;
286
293
  // const duration = Date.now() - now;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.5-slowquery.1",
3
+ "version": "1.7.5-slowquery.3",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",