diff options
| author | joonhoekim <26rote@gmail.com> | 2025-07-28 01:24:00 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-07-28 01:24:00 +0000 |
| commit | 563af36718e25d6ad6b72d3f89d571f9093df043 (patch) | |
| tree | ec516cfc3b37ca3451759761f83fe4d51a6a1e71 /instrumentation.ts | |
| parent | 2650b7c0bb0ea12b68a58c0439f72d61df04b2f1 (diff) | |
(김준회) SPREADJS 키 정리, Knox 동기화 스케줄러 개선
Diffstat (limited to 'instrumentation.ts')
| -rw-r--r-- | instrumentation.ts | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/instrumentation.ts b/instrumentation.ts index 415214ce..97aa6143 100644 --- a/instrumentation.ts +++ b/instrumentation.ts @@ -12,32 +12,20 @@ export async function register() { // const { startEnhancedSyncScheduler } = await import('./lib/nonsap-sync/enhanced-sync-service'); // startEnhancedSyncScheduler(); - } catch (error) { + } catch { console.error('Failed to start Enhanced NONSAP sync scheduler.'); // 스케줄러 실패해도 애플리케이션은 계속 실행 } try { - // Knox 직급 동기화 스케줄러 시작 - const { startKnoxTitleSyncScheduler } = await import( - './lib/knox-sync/title-sync-service' + // Knox 통합 동기화 스케줄러 시작 (직급 → 조직 → 임직원 순차 실행) + const { startKnoxMasterSyncScheduler } = await import( + './lib/knox-sync/master-sync-service' ); - startKnoxTitleSyncScheduler(); + await startKnoxMasterSyncScheduler(); - // Knox 조직 동기화 스케줄러 시작 - const { startKnoxOrganizationSyncScheduler } = await import( - './lib/knox-sync/organization-sync-service' - ); - startKnoxOrganizationSyncScheduler(); - - // Knox 임직원 동기화 스케줄러 시작 - const { startKnoxEmployeeSyncScheduler } = await import( - './lib/knox-sync/employee-sync-service' - ); - startKnoxEmployeeSyncScheduler(); - } - catch (error) { - console.error('Failed to start Knox employee/organization/title sync scheduler.'); + } catch { + console.error('Failed to start Knox master sync scheduler.'); // 스케줄러 실패해도 애플리케이션은 계속 실행 } } |
