feat(rfa-ai): Complete RFA Approval Refactor and AI Model Revision
CI / CD Pipeline / build (push) Successful in 4m54s
CI / CD Pipeline / deploy (push) Failing after 12m9s

This commit is contained in:
2026-05-16 10:59:53 +07:00
parent 6cb3ae10ee
commit 1a162bf320
105 changed files with 5088 additions and 1083 deletions
+21
View File
@@ -1,6 +1,7 @@
// File: src/config/bullmq.config.ts
// Change Log:
// - 2026-05-13: Add BullMQ config registry for reminder and distribution queues.
// - 2026-05-15: เพิ่ม config สำหรับ ai-realtime และ ai-batch ตาม ADR-023A.
import { registerAs } from '@nestjs/config';
@@ -9,6 +10,26 @@ export default registerAs('bullmq', () => ({
reminderQueue: process.env.BULLMQ_REMINDER_QUEUE || 'rfa-reminders',
distributionQueue:
process.env.BULLMQ_DISTRIBUTION_QUEUE || 'rfa-distribution',
aiRealtimeQueue: {
name: process.env.BULLMQ_AI_REALTIME_QUEUE || 'ai-realtime',
concurrency: 1,
defaultJobOptions: {
attempts: 3,
backoff: { type: 'exponential', delay: 2000 },
removeOnComplete: 100,
removeOnFail: 200,
},
},
aiBatchQueue: {
name: process.env.BULLMQ_AI_BATCH_QUEUE || 'ai-batch',
concurrency: 1,
defaultJobOptions: {
attempts: 3,
backoff: { type: 'exponential', delay: 5000 },
removeOnComplete: 100,
removeOnFail: 500,
},
},
connection: {
host: process.env.REDIS_HOST || 'cache',
port: Number(process.env.REDIS_PORT || '6379'),