This repository has no description
1import { EnvironmentConfigService } from '../shared/infrastructure/config/EnvironmentConfigService';
2import { FeedWorkerProcess } from '../shared/infrastructure/processes/FeedWorkerProcess';
3
4async function main() {
5 const configService = new EnvironmentConfigService();
6 const useInMemoryEvents = configService.shouldUseInMemoryEvents();
7
8 if (useInMemoryEvents) {
9 console.log(
10 'Skipping feed worker startup - using in-memory events (handled by main process)',
11 );
12 return;
13 }
14
15 console.log('Starting dedicated feed worker process...');
16 const feedWorkerProcess = new FeedWorkerProcess(configService);
17
18 await feedWorkerProcess.start();
19}
20
21main().catch((error) => {
22 console.error('Failed to start feed worker:', error);
23 process.exit(1);
24});