fix(queue-worker): concurrency

This commit is contained in:
Gergo Moricz 2024-08-06 16:57:00 +02:00
parent d7d63790e5
commit 7c5cda7b45

View File

@ -102,7 +102,7 @@ const workerFun = async (queueName: string, processJobInternal: (token: string,
const job = await worker.getNextJob(token);
if (job) {
await processJobInternal(token, job);
processJobInternal(token, job);
await sleep(gotJobInterval);
} else {
await sleep(connectionMonitorInterval);