This repository has no description
0

Configure Feed

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

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