diff options
| author | joonhoekim <26rote@gmail.com> | 2025-10-23 18:13:41 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-10-23 18:13:41 +0900 |
| commit | 78c471eec35182959e0029ded18f144974ccaca2 (patch) | |
| tree | 914cdf1c8f406ca3e2aa639b8bb774f7f4e87023 /instrumentation.ts | |
| parent | 0be8940580c4a4a4e098b649d198160f9b60420c (diff) | |
(김준회) 결재 템플릿 에디터 및 결재 워크플로 공통함수 작성, 실사의뢰 결재 연결 예시 작성
Diffstat (limited to 'instrumentation.ts')
| -rw-r--r-- | instrumentation.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/instrumentation.ts b/instrumentation.ts index 3cf9e689..de353e5f 100644 --- a/instrumentation.ts +++ b/instrumentation.ts @@ -81,5 +81,23 @@ export async function register() { // console.error('Failed to start User Code sync scheduler.'); // // 스케줄러 실패해도 애플리케이션은 계속 실행 // } + + try { + // Knox 결재 액션 핸들러 초기화 (앱 시작 시 핸들러 등록) + const { initializeApprovalHandlers } = await import('./lib/approval/handlers-registry'); + await initializeApprovalHandlers(); + } catch { + console.error('Failed to initialize approval handlers.'); + // 핸들러 초기화 실패해도 애플리케이션은 계속 실행 + } + + try { + // Knox 결재 상태 폴링 스케줄러 시작 (1분마다 pending 결재 상태 확인) + const { startApprovalPollingScheduler } = await import('./lib/approval/approval-polling-service'); + await startApprovalPollingScheduler(); + } catch { + console.error('Failed to start Approval polling scheduler.'); + // 스케줄러 실패해도 애플리케이션은 계속 실행 + } } } |
