@yolo-croket-dev/core 1.7.18-slowquery.1 → 1.7.18-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.
|
@@ -257,12 +257,14 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
257
257
|
&& err.isRetry !== false) {
|
|
258
258
|
/** 재시도 로직이 필요한 경우, 0보다 커야 정의된것. 기본값이 0, isRetry값이 false로 정의된 에러가 아니라면 전부 재시도 */
|
|
259
259
|
if (reDeliveryCount <= (staticRetryCount - 1)) { /** 재시도 횟수가 있고, 재시도 횟수보다 적을 경우, 0부터 카운팅 되므로 -1 */
|
|
260
|
+
console.log('RETRY 재처리');
|
|
260
261
|
message.properties.headers['x-requeue-reason'] = 'RETRY';
|
|
261
262
|
channel.nack(message, false, true);
|
|
262
263
|
message.properties.replyTo = undefined; /** replyTo가 존재하면 sendToQueue가 호출되므로, 삭제해주기 */
|
|
263
264
|
isAck = true;
|
|
264
265
|
}
|
|
265
266
|
else {
|
|
267
|
+
console.log('DLQ 전달');
|
|
266
268
|
const dlqMessage = JSON.stringify(abstractAmqpHandlerData);
|
|
267
269
|
channel.sendToQueue(message.properties.replyTo, Buffer.from(dlqMessage), { correlationId: message.properties.correlationId });
|
|
268
270
|
message.properties.headers['x-requeue-reason'] = 'DLQ-FORWARD';
|