Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1m1s
- B20: docker-compose.yml with MySQL 8.0, Redis 7, API, BullMQ Worker, Nginx - B20: Dockerfile.worker + worker.module.ts + worker.main.ts for standalone worker - B20: nginx/nginx.conf reverse proxy with gzip, /api/* routes, health check - B21: app.enableShutdownHooks() in main.ts for graceful SIGTERM handling - B22: migration adding objectKey/bucket to UploadedFile, AiUsageLog, WaitlistEntry Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 lines
312 B
TypeScript
13 lines
312 B
TypeScript
import { NestFactory } from '@nestjs/core';
|
|
import { WorkerModule } from './worker.module';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.createApplicationContext(WorkerModule);
|
|
|
|
app.enableShutdownHooks();
|
|
|
|
console.log('[Worker] BullMQ workers started — waiting for jobs');
|
|
}
|
|
|
|
bootstrap();
|