summaryrefslogtreecommitdiff
path: root/instrumentation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'instrumentation.ts')
-rw-r--r--instrumentation.ts18
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.');
+ // 스케줄러 실패해도 애플리케이션은 계속 실행
+ }
}
}