@yolo-croket-dev/core 1.7.6-slowquery.1 → 1.7.6-slowquery.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ export declare class GracefulShutdownService implements OnApplicationShutdown, O
8
8
  private isExecLocal?;
9
9
  private activeInterceptors;
10
10
  isApplicationExit: boolean;
11
+ private readonly HEALTHY_FILE_PATH;
11
12
  onApplicationBootstrap(): void;
12
13
  pushActiveInterceptors(execInterceptor: GracefulExecInterceptor): void;
13
14
  popActiveInterceptors(execInterceptor: GracefulExecInterceptor): void;
@@ -38,6 +38,7 @@ let GracefulShutdownService = class GracefulShutdownService {
38
38
  constructor() {
39
39
  this.activeInterceptors = [];
40
40
  this.isApplicationExit = false;
41
+ this.HEALTHY_FILE_PATH = '/tmp/healthy';
41
42
  }
42
43
  onApplicationBootstrap() {
43
44
  this.activeInterceptors = [];
@@ -51,7 +52,9 @@ let GracefulShutdownService = class GracefulShutdownService {
51
52
  this.isExecLocal = false;
52
53
  }
53
54
  // Health check 용 파일 생성
54
- (0, fs_1.writeFileSync)('/tmp/healthy', (new Date().toISOString()));
55
+ (0, fs_1.writeFileSync)(this.HEALTHY_FILE_PATH, (new Date().toISOString()));
56
+ const isHealthyFileExist = (0, fs_1.existsSync)(this.HEALTHY_FILE_PATH);
57
+ msaLogger.debug(`GracefulShutdownService.onApplicationBootstrap isExecLocal=${this.isExecLocal}`, { traceId: 'ON_APPLICATION_BOOTSTRAP' }, { isHealthyFileExist });
55
58
  }
56
59
  pushActiveInterceptors(execInterceptor) {
57
60
  this.activeInterceptors.push(execInterceptor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.6-slowquery.1",
3
+ "version": "1.7.6-slowquery.2",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",