Quest: Resource Governance Priority: P5 Status: open
Limit the number of analyses running simultaneously. On this VM, max 2 concurrent analyses (configurable). Additional analyses queued and run in FIFO order. Prevents resource contention and ensures the VM stays responsive.
_Identify during implementation._
_Identify during implementation._
agent.py is the main orchestrator (SciDEXOrchestrator class). It runs debates via run_single() / run_continuous(). Uses PostgreSQL via SCIDEX_CONFIG['db_path'] = 'postgresql://scidex'.max_concurrent_analyses=2 and stale_queue_timeout_hours=24 to SCIDEX_CONFIGcount_running_analyses(), get_next_queued_analysis(), start_queued_analysis(), cancel_stale_queued_analyses(), process_queue() methods to SciDEXOrchestratorrun_single() to check capacity and queue analyses when at limit/api/quests/status exposes analysis_queue_depth and active_analysesprocess_queue used a while loop that could launch multiple expensive analyses in one scheduler pass, defeating concurrency limits.process_queue from while running < max_concurrent to a single if running < max_concurrent — processes at most ONE queued item per call.run_single after process_queue() — if queue processing consumed the last slot, run_single returns early instead of starting a fresh gap analysis.
{
"requirements": {
"coding": 7,
"reasoning": 7,
"analysis": 8
}
}