summaryrefslogtreecommitdiff
path: root/instrumentation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'instrumentation.ts')
-rw-r--r--instrumentation.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/instrumentation.ts b/instrumentation.ts
index 97aa6143..db8da371 100644
--- a/instrumentation.ts
+++ b/instrumentation.ts
@@ -28,5 +28,17 @@ export async function register() {
console.error('Failed to start Knox master sync scheduler.');
// 스케줄러 실패해도 애플리케이션은 계속 실행
}
+
+ try {
+ // Procurement 동기화 스케줄러 시작 (지불조건, 인코텀즈, 선적/하역지)
+ const { startProcurementSyncScheduler } = await import(
+ './lib/nonsap-sync/procurement-sync-service'
+ );
+ await startProcurementSyncScheduler();
+
+ } catch {
+ console.error('Failed to start Procurement sync scheduler.');
+ // 스케줄러 실패해도 애플리케이션은 계속 실행
+ }
}
}