From 70aada2ef189467d1bc62dc892c629a71196e755 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Wed, 5 Nov 2025 11:54:08 +0900 Subject: (김준회) 결재 개선, 실사의뢰/실사재의뢰 베스트프랙티스로 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- instrumentation.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'instrumentation.ts') diff --git a/instrumentation.ts b/instrumentation.ts index de353e5f..934f9025 100644 --- a/instrumentation.ts +++ b/instrumentation.ts @@ -82,17 +82,9 @@ 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 { -- cgit v1.2.3