This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / workers / sync-worker.ts
833 B 25 lines
1// IMPORTANT: Import instrument.ts first to initialize Sentry as early as possible 2import '../instrument'; 3 4import { EnvironmentConfigService } from '../shared/infrastructure/config/EnvironmentConfigService'; 5import { SyncWorkerProcess } from '../shared/infrastructure/processes/SyncWorkerProcess'; 6 7async function main() { 8 const configService = new EnvironmentConfigService(); 9 const useInMemoryEvents = configService.shouldUseInMemoryEvents(); 10 11 if (useInMemoryEvents) { 12 console.log('[SYNC] Skipping sync worker - using in-memory events'); 13 return; 14 } 15 16 console.log('[SYNC] Starting sync worker...'); 17 18 const syncWorkerProcess = new SyncWorkerProcess(configService); 19 await syncWorkerProcess.start(); 20} 21 22main().catch((error) => { 23 console.error('[SYNC] Failed to start sync worker:', error); 24 process.exit(1); 25});