This commit is contained in:
AdisakKanthawilang 2024-11-22 17:30:44 +07:00
parent 219a9ff104
commit e9554e14fa

View file

@ -57,6 +57,7 @@ async function createConsumer( //----> consumer
channel.consume(
queue,
async (msg) => {
console.log("[AMQ] MSQ",msg);
if (!msg) return;
if ((await handler(msg)) || retries++ >= 3) {
retries = 0;