From 563af36718e25d6ad6b72d3f89d571f9093df043 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 28 Jul 2025 01:24:00 +0000 Subject: (김준회) SPREADJS 키 정리, Knox 동기화 스케줄러 개선 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- instrumentation.ts | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'instrumentation.ts') 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.'); // 스케줄러 실패해도 애플리케이션은 계속 실행 } } -- cgit v1.2.3