fix(CQ-ORCH-10): Make BullMQ job retention configurable via env vars
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Replace hardcoded BullMQ job retention values (completed: 100 jobs / 1h, failed: 1000 jobs / 24h) with configurable env vars to prevent memory growth under load. Adds QUEUE_COMPLETED_RETENTION_COUNT, QUEUE_COMPLETED_RETENTION_AGE_S, QUEUE_FAILED_RETENTION_COUNT, and QUEUE_FAILED_RETENTION_AGE_S to orchestrator config. Defaults preserve existing behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,14 @@ SANDBOX_ENABLED=true
|
||||
# Health endpoints (/health/*) remain unauthenticated
|
||||
ORCHESTRATOR_API_KEY=REPLACE_WITH_RANDOM_API_KEY_MINIMUM_32_CHARS
|
||||
|
||||
# Queue Job Retention
|
||||
# Controls how many completed/failed jobs BullMQ retains and for how long.
|
||||
# Reduce these values under high load to limit memory growth.
|
||||
QUEUE_COMPLETED_RETENTION_COUNT=100
|
||||
QUEUE_COMPLETED_RETENTION_AGE_S=3600
|
||||
QUEUE_FAILED_RETENTION_COUNT=1000
|
||||
QUEUE_FAILED_RETENTION_AGE_S=86400
|
||||
|
||||
# Quality Gates
|
||||
# YOLO mode bypasses all quality gates (default: false)
|
||||
# WARNING: Only enable for development/testing. Not recommended for production.
|
||||
|
||||
Reference in New Issue
Block a user