diff --git a/src/index.js b/src/index.js index b487d44c..12bfd39c 100644 --- a/src/index.js +++ b/src/index.js @@ -170,6 +170,7 @@ class PgBoss extends EventEmitter { await delay(1000) } + await this.boss.stop() await shutdown() } catch (err) { this.emit(events.error, err)