감사 정리 CLI가 게임 데몬 실행 역할을 상속하지 않게 한다

This commit is contained in:
Hide_D committed 2026-11-09 20:49:20 +09:00
1 parent 078b9aa205
commit 79de6d484c
1 file changed
+4 -1
+4 -1
View File
@@ -3,7 +3,10 @@
import { performance } from 'node:perf_hooks'; import { performance } from 'node:perf_hooks';
import { setTimeout } from 'node:timers/promises'; import { setTimeout } from 'node:timers/promises';
import { createGamePostgresConnector, pruneDeliveredReadModelOutbox } from '../packages/infra/dist/index.js'; import { createGamePostgresConnector, pruneDeliveredReadModelOutbox } from '../packages/infra/dist/index.js';
import { prunePreviousAuditBatch } from '../app/game-engine/dist/index.js';
// PM2/호출자가 넘긴 turn-daemon 역할로 engine root의 자동 기동 경로에 들어가지 않는다.
process.env.GAME_ENGINE_ROLE = 'audit-maintenance';
const { prunePreviousAuditBatch } = await import('../app/game-engine/dist/index.js');
const args = process.argv.slice(2); const args = process.argv.slice(2);
const apply = args.includes('--apply'); const apply = args.includes('--apply');