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
764 B 22 lines
1import { EnvironmentConfigService } from '../shared/infrastructure/config/EnvironmentConfigService'; 2import { FeedWorkerProcess } from '../shared/infrastructure/processes/FeedWorkerProcess'; 3 4async function main() { 5 const useInMemoryEvents = process.env.USE_IN_MEMORY_EVENTS === 'true'; 6 7 if (useInMemoryEvents) { 8 console.log('Skipping feed worker startup - using in-memory events (handled by main process)'); 9 return; 10 } 11 12 console.log('Starting dedicated feed worker process...'); 13 const configService = new EnvironmentConfigService(); 14 const feedWorkerProcess = new FeedWorkerProcess(configService); 15 16 await feedWorkerProcess.start(); 17} 18 19main().catch((error) => { 20 console.error('Failed to start feed worker:', error); 21 process.exit(1); 22});