Skip to content

Commit

Permalink
fix(worker): run stalled check directly first time
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Feb 23, 2023
1 parent 49e860c commit f71ec03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ export class Worker<

async run() {
if (!this.stalledCheckTimer && !this.opts.skipStalledCheck) {
await this.runStalledJobsCheck();
this.stalledCheckTimer = setInterval(() => {
this.runStalledJobsCheck();
}, this.opts.stalledInterval);
Expand Down

0 comments on commit f71ec03

Please sign in to comment.