MCPcopy Create free account
hub / github.com/AI45Lab/Code / respects_concurrency_hint

Function respects_concurrency_hint

core/src/orchestration/executor.rs:265–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263
264 #[tokio::test]
265 async fn respects_concurrency_hint() {
266 let mock = MockExecutor::new(2);
267 let max_active = Arc::clone(&mock.max_active);
268 let exec: Arc<dyn AgentExecutor> = Arc::new(mock);
269 let specs = (0..6).map(|i| spec(&i.to_string(), "explore")).collect();
270 let _ = execute_steps_parallel(exec, specs, None).await;
271 assert_eq!(
272 max_active.load(Ordering::SeqCst),
273 2,
274 "never more than concurrency_hint steps run at once"
275 );
276 }
277
278 #[tokio::test]
279 async fn isolates_failed_and_panicked_steps() {

Callers

nothing calls this directly

Calls 2

execute_steps_parallelFunction · 0.85
specFunction · 0.70

Tested by

no test coverage detected