summaryrefslogtreecommitdiff
path: root/instrumentation.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-05 11:54:08 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-05 11:54:08 +0900
commit70aada2ef189467d1bc62dc892c629a71196e755 (patch)
treefcca4c52c94f2d69d356bee2a7c5693236018794 /instrumentation.ts
parent5994c98054a5883f8b15a204ffaca6ceaf86e013 (diff)
(김준회) 결재 개선, 실사의뢰/실사재의뢰 베스트프랙티스로 수정
Diffstat (limited to 'instrumentation.ts')
-rw-r--r--instrumentation.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/instrumentation.ts b/instrumentation.ts
index de353e5f..934f9025 100644
--- a/instrumentation.ts
+++ b/instrumentation.ts
@@ -83,16 +83,8 @@ export async function register() {
// }
try {
- // Knox 결재 액션 핸들러 초기화 (앱 시작 시 핸들러 등록)
- const { initializeApprovalHandlers } = await import('./lib/approval/handlers-registry');
- await initializeApprovalHandlers();
- } catch {
- console.error('Failed to initialize approval handlers.');
- // 핸들러 초기화 실패해도 애플리케이션은 계속 실행
- }
-
- try {
// Knox 결재 상태 폴링 스케줄러 시작 (1분마다 pending 결재 상태 확인)
+ // 참고: 핸들러는 Lazy 초기화로 자동 등록됨 (approval-workflow.ts의 ensureHandlersInitialized)
const { startApprovalPollingScheduler } = await import('./lib/approval/approval-polling-service');
await startApprovalPollingScheduler();
} catch {