Skip to content

Commit

Permalink
fix(job-processor): emit error when db query fails
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Oct 23, 2020
1 parent d8d4134 commit eff80aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JobProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ export class JobProcessor {
}
} catch (error) {
log.extend('jobQueueFilling')('[%s] job lock failed while filling queue', name, error);
this.agenda.emit('error', error);
}
}

Expand Down

0 comments on commit eff80aa

Please sign in to comment.