@yolo-croket-dev/core 1.7.18-slowquery.3 → 1.7.18-slowquery.4

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.
@@ -252,6 +252,12 @@ let RPCInterceptor = class RPCInterceptor {
252
252
  errMessage,
253
253
  errAction,
254
254
  };
255
+ const isTimeoutError = err instanceof Error && err.name === 'TimeoutError';
256
+ if (isTimeoutError) {
257
+ channel.nack(message, false, true);
258
+ message.properties.replyTo = undefined; /** replyTo가 존재하면 sendToQueue가 호출되므로, 삭제해주기 */
259
+ return rxjs_1.EMPTY;
260
+ }
255
261
  if (!Number.isNaN(staticRetryCount)
256
262
  && staticRetryCount
257
263
  && err.isRetry !== false) {
@@ -350,9 +356,6 @@ let RPCInterceptor = class RPCInterceptor {
350
356
  }), (0, operators_1.catchError)(async (err) => {
351
357
  // timeout 에러 처리
352
358
  msaLogger.error('Timeout occurred, requeuing message', { traceId: execInterceptor.traceId }, { error: err });
353
- // 메시지를 Requeue
354
- channel.nack(message, false, true);
355
- message.properties.replyTo = undefined; /** replyTo가 존재하면 sendToQueue가 호출되므로, 삭제해주기 */
356
359
  }), (0, operators_1.finalize)(() => {
357
360
  this.gracefulShutdownService.popActiveInterceptors(execInterceptor);
358
361
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.18-slowquery.3",
3
+ "version": "1.7.18-slowquery.4",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",