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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user