From 49d236df3bd2bd976ebc424644f34f5affa1074f Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 14 Aug 2025 13:15:21 +0000 Subject: (김준회) 결재 테스트 모듈 수정, 환경병수 eVCP 운영 대응, SGIPS JWT TOKEN 수정, SHI-API 기반 유저 관리 추가, 유저목록 테이블 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- instrumentation.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'instrumentation.ts') diff --git a/instrumentation.ts b/instrumentation.ts index db8da371..a98cda12 100644 --- a/instrumentation.ts +++ b/instrumentation.ts @@ -30,7 +30,7 @@ export async function register() { } try { - // Procurement 동기화 스케줄러 시작 (지불조건, 인코텀즈, 선적/하역지) + // Procurement 동기화 스케줄러 시작 (지불조건, 인코텀즈, 선적지, 하역지) const { startProcurementSyncScheduler } = await import( './lib/nonsap-sync/procurement-sync-service' ); @@ -40,5 +40,14 @@ export async function register() { console.error('Failed to start Procurement sync scheduler.'); // 스케줄러 실패해도 애플리케이션은 계속 실행 } + + try { + // SHI-API NONSAP 사용자 동기화 - 1일 1회 CRON 등록 + const { startShiApiUsersDailySyncScheduler } = await import('./lib/shi-api/users-sync-scheduler'); + await startShiApiUsersDailySyncScheduler(); + } catch { + console.error('Failed to start SHI-API users daily cron scheduler.'); + // 스케줄러 실패해도 애플리케이션은 계속 실행 + } } } -- cgit v1.2.3