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>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# Orchestrator Configuration
|
|
ORCHESTRATOR_PORT=3001
|
|
NODE_ENV=development
|
|
|
|
# Valkey
|
|
VALKEY_HOST=localhost
|
|
VALKEY_PORT=6379
|
|
VALKEY_URL=redis://localhost:6379
|
|
|
|
# Claude API
|
|
CLAUDE_API_KEY=your-api-key-here
|
|
|
|
# Docker
|
|
DOCKER_SOCKET=/var/run/docker.sock
|
|
|
|
# Git
|
|
GIT_USER_NAME="Mosaic Orchestrator"
|
|
GIT_USER_EMAIL="orchestrator@mosaicstack.dev"
|
|
|
|
# Security
|
|
KILLSWITCH_ENABLED=true
|
|
SANDBOX_ENABLED=true
|
|
|
|
# API Authentication
|
|
# CRITICAL: Generate a random API key with at least 32 characters
|
|
# Example: openssl rand -base64 32
|
|
# Required for all /agents/* endpoints (spawn, kill, kill-all, status)
|
|
# 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.
|
|
YOLO_MODE=false
|