Skip to content

Commit efd95f9

Browse files
committed
call compilerCache.clear() on shutdown
1 parent d1ff8c8 commit efd95f9

File tree

1 file changed

+4
-0
lines changed
  • packages/cubejs-server-core/src/core

1 file changed

+4
-0
lines changed

packages/cubejs-server-core/src/core/server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,8 @@ export class CubejsServerCore {
876876
clearInterval(this.maxCompilerCacheKeep);
877877
}
878878

879+
this.compilerCache.clear();
880+
879881
if (this.scheduledRefreshTimerInterval) {
880882
await this.scheduledRefreshTimerInterval.cancel();
881883
}
@@ -919,6 +921,8 @@ export class CubejsServerCore {
919921
};
920922

921923
public async shutdown() {
924+
this.compilerCache.clear();
925+
922926
if (this.devServer) {
923927
if (!process.env.CI) {
924928
process.removeListener('uncaughtException', this.onUncaughtException);

0 commit comments

Comments
 (0)