Skip to content

Commit 9fea180

Browse files
committed
shutdown will kick-off redis client close without waiting
1 parent d4aedf0 commit 9fea180

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/plugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ const _registerFeatureProvider = (envFeatureToggles) => {
133133
};
134134

135135
const _registerClientCloseOnShutdown = () => {
136-
cds.on("shutdown", async () => {
137-
await Promise.allSettled([closeMainClient(), closeSubscriberClient()]);
136+
cds.on("shutdown", () => {
137+
// NOTE: we just want to kick off the closing in shutdown
138+
closeMainClient();
139+
closeSubscriberClient();
138140
});
139141
};
140142

0 commit comments

Comments
 (0)