We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c6563 commit 2b4fc36Copy full SHA for 2b4fc36
src/taskmaster.ts
@@ -36,6 +36,9 @@ amqp.connect(`amqp://${config.AMQP.USER}:${config.AMQP.PASS}@${config.AMQP.HOST}
36
channel.assertQueue(successQ);
37
channel.assertQueue(jobQ);
38
channel.assertQueue(errorQ);
39
+
40
+ channel.prefetch(1);
41
42
channel.consume(jobQ, async (msg) => {
43
try {
44
const payload = JSON.parse(msg.content.toString())
0 commit comments