This repository has no description
0

Configure Feed

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

semble / src / workers / notification-worker.ts
950 B 29 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 { NotificationWorkerProcess } from '../shared/infrastructure/processes/NotificationWorkerProcess'; 6 7async function main() { 8 const configService = new EnvironmentConfigService(); 9 const useInMemoryEvents = configService.shouldUseInMemoryEvents(); 10 11 if (useInMemoryEvents) { 12 console.log( 13 'Skipping notification worker startup - using in-memory events (handled by main process)', 14 ); 15 return; 16 } 17 18 console.log('Starting dedicated notification worker process...'); 19 const notificationWorkerProcess = new NotificationWorkerProcess( 20 configService, 21 ); 22 23 await notificationWorkerProcess.start(); 24} 25 26main().catch((error) => { 27 console.error('Failed to start notification worker:', error); 28 process.exit(1); 29});