Fix bull-mq retry option and exceptions not being captured for jobs (#3905)

* Fix bull-mq retry option

* fix exception inside worker

* add logs

* fix after review
This commit is contained in:
Weiko
2024-02-12 15:12:52 +01:00
committed by GitHub
parent 1265dc74d0
commit c13e55a753
6 changed files with 15 additions and 11 deletions

View File

@ -39,7 +39,12 @@ async function bootstrap() {
.select(JobsModule)
.get(jobClassName, { strict: true });
await job.handle(jobData.data);
try {
await job.handle(jobData.data);
} catch (err) {
exceptionHandlerService?.captureExceptions([err]);
throw err;
}
});
}
} catch (err) {