huskies: merge 773
This commit is contained in:
@@ -35,11 +35,11 @@ impl AgentPool {
|
||||
/// Used by `list_agents` and `get_pipeline_status` to surface in-flight
|
||||
/// deterministic merges that hold the merge lock but have no agent entry.
|
||||
pub fn list_running_merges(&self) -> Result<Vec<String>, String> {
|
||||
let jobs = self.merge_jobs.lock().map_err(|e| e.to_string())?;
|
||||
let jobs = crate::crdt_state::read_all_merge_jobs().unwrap_or_default();
|
||||
Ok(jobs
|
||||
.values()
|
||||
.filter(|job| matches!(job.status, crate::agents::merge::MergeJobStatus::Running))
|
||||
.map(|job| job.story_id.clone())
|
||||
.into_iter()
|
||||
.filter(|job| job.status == "running")
|
||||
.map(|job| job.story_id)
|
||||
.collect())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user