@cargolift-cdi/util-rabbitmq 0.2.37 → 0.2.39
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.
|
@@ -8,6 +8,7 @@ export interface DefaultHandlerOptions {
|
|
|
8
8
|
processor: {
|
|
9
9
|
process: (queueName: string, msg: ConsumeMessage) => Promise<void>;
|
|
10
10
|
onSuccess: (message: string) => Promise<void>;
|
|
11
|
+
onRetry: (message: string, detail: string, stack?: string) => Promise<void>;
|
|
11
12
|
onError: (message: string, detail: string, stack?: string) => Promise<void>;
|
|
12
13
|
};
|
|
13
14
|
dlxSuffixEnvVar?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rabbitmq-message.handlers.d.ts","sourceRoot":"","sources":["../src/rabbitmq-message.handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAKL,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAI/B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,oBAAoB,CAAC;IACpC,SAAS,EAAE;QACT,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QACnE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QAC9C,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;KAC7E,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAUD,wBAAgB,YAAY,CAAC,MAAM,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,MAAM,CAAC;CAC1B;AAUD,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;;;;;;EAaA;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,qBAAqB,IACvD,KAAK;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,mBA2HhF"}
|
|
@@ -27,71 +27,29 @@ export function createDefaultMessageHandler(opts) {
|
|
|
27
27
|
const seedContext = opts.loggerContext.buildRabbitContext?.(msg, {
|
|
28
28
|
application: { action: "rabbitmq.subscribe" },
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
await runWithLoggerContext(seedContext, () => opts.processor.onSuccess(`[${queueName}] Mensagem processada com sucesso.`));
|
|
37
|
-
}
|
|
30
|
+
return runWithLoggerContext(seedContext, async () => {
|
|
31
|
+
try {
|
|
32
|
+
await opts.processor.process(queueName, msg);
|
|
33
|
+
channel.ack(msg);
|
|
34
|
+
if (opts.processor.onSuccess) {
|
|
35
|
+
await opts.processor.onSuccess(`[${queueName}] Mensagem processada com sucesso.`);
|
|
38
36
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (scheduled.success) {
|
|
46
|
-
opts.loggerContext.warn(`[${queueName}] Erro transiente: ${error.message}. [Agendando nova tentativa ${scheduled.currentRetry}/${scheduled.maxRetries} (${scheduled.queue})]`, {
|
|
47
|
-
data: {
|
|
48
|
-
rabbit: {
|
|
49
|
-
queueName,
|
|
50
|
-
routing_key: msg.fields.routingKey,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
error: {
|
|
54
|
-
message: error?.toString() || String(error),
|
|
55
|
-
cause: error?.cause || undefined,
|
|
56
|
-
type: errorType,
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const { dlxExchange, dlqRoutingKey, system, event, action } = buildDlqInfo({
|
|
63
|
-
baseExchange: opts.exchange,
|
|
64
|
-
queueName,
|
|
65
|
-
routingKey: msg.fields.routingKey,
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
const errorType = classifyError(error);
|
|
40
|
+
if (errorType === "transient") {
|
|
41
|
+
const scheduled = scheduleTransientRetry(channel, msg, opts.loggerContext, {
|
|
42
|
+
inboundExchange: opts.exchange,
|
|
66
43
|
});
|
|
67
|
-
if (
|
|
68
|
-
opts.
|
|
69
|
-
|
|
70
|
-
let msgAction;
|
|
71
|
-
switch (errorType) {
|
|
72
|
-
case "business":
|
|
73
|
-
msgAction = `${error.message} [Erro fatal de negócio, encaminhando para DLQ.]`;
|
|
74
|
-
break;
|
|
75
|
-
case "fatal":
|
|
76
|
-
msgAction = `${error.message} [Erro fatal, encaminhando para DLQ.]`;
|
|
77
|
-
break;
|
|
78
|
-
default:
|
|
79
|
-
msgAction = `${error.message} [Todas tentativas falharam, encaminhando para DLQ.]`;
|
|
80
|
-
}
|
|
81
|
-
if (errorType === "fatal" || errorType === "transient") {
|
|
82
|
-
if (opts.processor.onError) {
|
|
83
|
-
await runWithLoggerContext(seedContext, () => opts.processor.onError(msgAction, error?.cause || undefined, error?.stack || undefined));
|
|
44
|
+
if (scheduled.success) {
|
|
45
|
+
if (opts.processor.onRetry) {
|
|
46
|
+
await opts.processor.onRetry(`[${queueName}] Erro transiente: ${error.message}. Agendada nova tentativa ${scheduled.currentRetry}/${scheduled.maxRetries} (${scheduled.queue})`, error?.cause || undefined, error?.stack || undefined);
|
|
84
47
|
}
|
|
85
|
-
|
|
86
|
-
else {
|
|
87
|
-
opts.loggerContext.warn(`[${queueName}] ${msgAction}`, {
|
|
48
|
+
opts.loggerContext.warn(`[${queueName}] Erro transiente: ${error.message}. [Agendando nova tentativa ${scheduled.currentRetry}/${scheduled.maxRetries} (${scheduled.queue})]`, {
|
|
88
49
|
data: {
|
|
89
50
|
rabbit: {
|
|
90
|
-
|
|
91
|
-
routing_key:
|
|
92
|
-
system,
|
|
93
|
-
event,
|
|
94
|
-
action,
|
|
51
|
+
queueName,
|
|
52
|
+
routing_key: msg.fields.routingKey,
|
|
95
53
|
},
|
|
96
54
|
},
|
|
97
55
|
error: {
|
|
@@ -100,29 +58,67 @@ export function createDefaultMessageHandler(opts) {
|
|
|
100
58
|
type: errorType,
|
|
101
59
|
},
|
|
102
60
|
});
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const { dlxExchange, dlqRoutingKey, system, event, action } = buildDlqInfo({
|
|
65
|
+
baseExchange: opts.exchange,
|
|
66
|
+
queueName,
|
|
67
|
+
routingKey: msg.fields.routingKey,
|
|
68
|
+
});
|
|
69
|
+
if (!system) {
|
|
70
|
+
opts.loggerContext.error(`[${queueName}] Não foi possível derivar o sistema a partir do nome da fila '${queueName}'. Fallback para nack(false).`);
|
|
71
|
+
}
|
|
72
|
+
let msgAction;
|
|
73
|
+
switch (errorType) {
|
|
74
|
+
case "business":
|
|
75
|
+
msgAction = `${error.message} [Erro fatal de negócio, encaminhando para DLQ.]`;
|
|
76
|
+
break;
|
|
77
|
+
case "fatal":
|
|
78
|
+
msgAction = `${error.message} [Erro fatal, encaminhando para DLQ.]`;
|
|
79
|
+
break;
|
|
80
|
+
default:
|
|
81
|
+
msgAction = `${error.message} [Todas tentativas falharam, encaminhando para DLQ.]`;
|
|
82
|
+
}
|
|
83
|
+
if (errorType === "fatal" || errorType === "transient") {
|
|
84
|
+
if (opts.processor.onError) {
|
|
85
|
+
await opts.processor.onError(msgAction, error?.cause || undefined, error?.stack || undefined);
|
|
103
86
|
}
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
opts.loggerContext.warn(`[${queueName}] ${msgAction}`, {
|
|
90
|
+
data: {
|
|
91
|
+
rabbit: {
|
|
92
|
+
exchange: dlxExchange,
|
|
93
|
+
routing_key: dlqRoutingKey,
|
|
94
|
+
system,
|
|
95
|
+
event,
|
|
96
|
+
action,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
error: {
|
|
100
|
+
message: error?.toString() || String(error),
|
|
101
|
+
cause: error?.cause || undefined,
|
|
102
|
+
type: errorType,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
try {
|
|
107
|
+
publishToDlqAndAck(channel, msg, opts.loggerContext, error, dlxExchange, dlqRoutingKey, {
|
|
108
|
+
noLoggerError: true,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
catch (error_) {
|
|
112
|
+
opts.loggerContext.error(`[${queueName}] Falha ao publicar na DLQ, fallback para nack(false): ${String(error_?.message || error_)}`);
|
|
104
113
|
try {
|
|
105
|
-
|
|
106
|
-
noLoggerError: true,
|
|
107
|
-
});
|
|
114
|
+
channel.nack(msg, false, false);
|
|
108
115
|
}
|
|
109
|
-
catch (
|
|
110
|
-
opts.loggerContext.error(`[${queueName}] Falha ao
|
|
111
|
-
try {
|
|
112
|
-
channel.nack(msg, false, false);
|
|
113
|
-
}
|
|
114
|
-
catch (error__) {
|
|
115
|
-
opts.loggerContext.error(`[${queueName}] Falha ao nack tag=${msg.fields.deliveryTag}: ${String(error__?.message || error__)}`);
|
|
116
|
-
}
|
|
116
|
+
catch (error__) {
|
|
117
|
+
opts.loggerContext.error(`[${queueName}] Falha ao nack tag=${msg.fields.deliveryTag}: ${String(error__?.message || error__)}`);
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
catch (error) {
|
|
122
|
-
if (opts.processor.onError) {
|
|
123
|
-
await opts.processor.onError(error?.message || String(error) || "Erro desconhecido em createDefaultMessageHandler", error?.cause || undefined, error?.stack || undefined);
|
|
124
120
|
}
|
|
125
|
-
}
|
|
121
|
+
});
|
|
126
122
|
};
|
|
127
123
|
}
|
|
128
124
|
//# sourceMappingURL=rabbitmq-message.handlers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rabbitmq-message.handlers.js","sourceRoot":"","sources":["../src/rabbitmq-message.handlers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAElB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAkB,sBAAsB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"rabbitmq-message.handlers.js","sourceRoot":"","sources":["../src/rabbitmq-message.handlers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAElB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAkB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAgBxF,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,KAAK,YAAY,qBAAqB,IAAI,KAAK,YAAY,kBAAkB;QAAE,OAAO,OAAO,CAAC;IAClG,IAAI,KAAK,YAAY,gBAAgB;QAAE,OAAO,WAAW,CAAC;IAC1D,IAAI,KAAK,YAAY,aAAa;QAAE,OAAO,WAAW,CAAC;IACvD,IAAI,KAAK,YAAY,KAAK;QAAE,OAAO,OAAO,CAAC;IAC3C,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAM5B;IACC,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,KAAK,CAAC;IACjF,MAAM,WAAW,GAAG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MAAM,CAAC,KAAK,CAAC;4BAC3C,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,SAAS;4BAChC,IAAI,EAAE,SAAS;yBAChB;qBACF,CAAC,CAAC;gBACL,CAAC;gBAED,IAAI,CAAC;oBACH,kBAAkB,CAAC,OAAc,EAAE,GAAU,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE;wBACpG,aAAa,EAAE,IAAI;qBACpB,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,MAAM,EAAE,CAAC;oBAChB,IAAI,CAAC,aAAa,CAAC,KAAK,CACtB,IAAI,SAAS,0DAA0D,MAAM,CAAE,MAAc,EAAE,OAAO,IAAI,MAAM,CAAC,EAAE,CACpH,CAAC;oBACF,IAAI,CAAC;wBACH,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;oBAClC,CAAC;oBAAC,OAAO,OAAO,EAAE,CAAC;wBACjB,IAAI,CAAC,aAAa,CAAC,KAAK,CACtB,IAAI,SAAS,uBAAuB,GAAG,CAAC,MAAM,CAAC,WAAW,KAAK,MAAM,CAAE,OAAe,EAAE,OAAO,IAAI,OAAO,CAAC,EAAE,CAC9G,CAAC;oBACJ,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cargolift-cdi/util-rabbitmq",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.39",
|
|
4
4
|
"description": "Funções utilitárias para trabalhar com RabbitMQ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
36
36
|
"build": "npm run clean && tsc -p tsconfig.json",
|
|
37
|
-
"prepublishOnly": "npm run clean && npm run build && npm version patch",
|
|
37
|
+
"prepublishOnly": "npm run clean && npm run build && npm version patch --no-git-tag-version",
|
|
38
38
|
"cdi": "npm update @cargolift-cdi/common @cargolift-cdi/types"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|