Skip to content

Commit eff80aa

Browse files
committed
fix(job-processor): emit error when db query fails
1 parent d8d4134 commit eff80aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/JobProcessor.ts

+1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ export class JobProcessor {
339339
}
340340
} catch (error) {
341341
log.extend('jobQueueFilling')('[%s] job lock failed while filling queue', name, error);
342+
this.agenda.emit('error', error);
342343
}
343344
}
344345

0 commit comments

Comments
 (0)