1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02:00

feat: stop scheduler on app stop (#3129)

This commit is contained in:
Mateusz Kwasniewski 2023-02-16 10:20:38 +01:00 committed by GitHub
parent 339aa16d9c
commit 2888fcc4c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,7 @@ async function createApp(
const stopServer = promisify(server.stop);
await stopServer();
}
services.schedulerService.stop();
metricsMonitor.stopMonitoring();
stores.clientInstanceStore.destroy();
services.clientMetricsServiceV2.destroy();