Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(cron): add diagnostics to scheduled child timeout panic

Steven Enamakel20cc925fd973
diff --git a/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs b/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
index e786021803..f9b7009839 100644
--- a/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
@@ -233,6 +233,11 @@ async fn scheduled_agent_history_includes_its_spawned_child_result() {
Err(_) => {
model.child_release.notify_one();
let result = tokio::time::timeout(std::time::Duration::from_secs(5), run).await;
+ eprintln!(
+ "scheduled child start timeout diagnostics: spawn calls {}, followups {}, run result {result:?}",
+ model.spawn_calls.load(std::sync::atomic::Ordering::SeqCst),
+ model.accepted_followups.load(std::sync::atomic::Ordering::SeqCst),
+ );
panic!(
"scheduled child never reached its model (spawn calls: {}, followups: {}); run result: {result:?}",
model.spawn_calls.load(std::sync::atomic::Ordering::SeqCst),