Skip to content

Commit

Permalink
stop boss before shutdown on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed Jan 27, 2023
1 parent 1bfaa8d commit efa3e2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class PgBoss extends EventEmitter {
await delay(1000)
}

await this.boss.stop()
await shutdown()
} catch (err) {
this.emit(events.error, err)
Expand Down

0 comments on commit efa3e2f

Please sign in to comment.