Implements the Coordinator class with main orchestration loop: - Async loop architecture with configurable poll interval - process_queue() method gets next ready issue and spawns agent (stub) - Graceful shutdown handling with stop() method - Error handling that allows loop to continue after failures - Logging for all actions (start, stop, processing, errors) - Integration with QueueManager from #159 - Active agent tracking for future agent management Configuration settings added: - COORDINATOR_POLL_INTERVAL (default: 5.0s) - COORDINATOR_MAX_CONCURRENT_AGENTS (default: 10) - COORDINATOR_ENABLED (default: true) Tests: 27 new tests covering all acceptance criteria Coverage: 92% overall (100% for coordinator.py) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
380 B
Plaintext
19 lines
380 B
Plaintext
# Gitea Configuration
|
|
GITEA_WEBHOOK_SECRET=your-webhook-secret-here
|
|
GITEA_URL=https://git.mosaicstack.dev
|
|
|
|
# Anthropic API (for issue parsing)
|
|
ANTHROPIC_API_KEY=sk-ant-your-api-key-here
|
|
|
|
# Server Configuration
|
|
HOST=0.0.0.0
|
|
PORT=8000
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
|
|
# Coordinator Configuration
|
|
COORDINATOR_POLL_INTERVAL=5.0
|
|
COORDINATOR_MAX_CONCURRENT_AGENTS=10
|
|
COORDINATOR_ENABLED=true
|