fix: Database connection lost error

This commit is contained in:
Ahmed Bouhuolia
2024-08-15 23:43:39 +02:00
parent bbbd96f159
commit fde9ccc5ca
12 changed files with 95 additions and 56 deletions

View File

@@ -15,7 +15,7 @@ export default class WriteInvoicesJournalEntries {
agenda.define(
eventName,
{ priority: 'normal', concurrency: 1 },
{ priority: 'normal', concurrency: 20 },
this.handler.bind(this)
);
agenda.on(`complete:${eventName}`, this.onJobCompleted.bind(this));