feat(ai-runtime): complete ai runtime policy refactor (ADR-035)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Change Log:
|
||||
// - 2026-05-13: Add BullMQ config registry for reminder and distribution queues.
|
||||
// - 2026-05-15: เพิ่ม config สำหรับ ai-realtime และ ai-batch ตาม ADR-023A.
|
||||
// - 2026-06-11: ปรับ aiRealtimeQueue.concurrency ให้รองรับ AI_REALTIME_CONCURRENCY / REALTIME_CONCURRENCY
|
||||
|
||||
import { registerAs } from '@nestjs/config';
|
||||
|
||||
@@ -12,7 +13,11 @@ export default registerAs('bullmq', () => ({
|
||||
process.env.BULLMQ_DISTRIBUTION_QUEUE || 'rfa-distribution',
|
||||
aiRealtimeQueue: {
|
||||
name: process.env.BULLMQ_AI_REALTIME_QUEUE || 'ai-realtime',
|
||||
concurrency: 1,
|
||||
concurrency: Number(
|
||||
process.env.AI_REALTIME_CONCURRENCY ||
|
||||
process.env.REALTIME_CONCURRENCY ||
|
||||
'2'
|
||||
),
|
||||
defaultJobOptions: {
|
||||
attempts: 3,
|
||||
backoff: { type: 'exponential', delay: 2000 },
|
||||
|
||||
Reference in New Issue
Block a user