Skip to content

Commit ecb9cad

Browse files
committed
use unique shutdown handler names
1 parent abcab33 commit ecb9cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/redis-worker/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class Worker<TCatalog extends WorkerCatalog> {
395395
}
396396

397397
private setupShutdownHandlers() {
398-
shutdownManager.register("redis-worker", this.shutdown.bind(this));
398+
shutdownManager.register(`redis-worker:${this.options.name}`, this.shutdown.bind(this));
399399
}
400400

401401
private async shutdown(signal?: NodeJS.Signals) {

0 commit comments

Comments
 (0)