Skip to content

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

test(cron): log recent runs when scheduled child never reaches model

Steven Enamakel53df6a9291f4
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 4a8b9f8ff7..6d3039c0e4 100644
--- a/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
@@ -411,9 +411,10 @@ async fn scheduled_cron_child_cannot_run_its_declared_destructive_tool() {
Err(_) => {
let result = tokio::time::timeout(std::time::Duration::from_secs(5), run).await;
eprintln!(
- "scheduled child never reached its model (spawn calls: {}, child calls: {}, result: {result:?})",
+ "scheduled child never reached its model (spawn calls: {}, child calls: {}, result: {result:?}, runs: {:?})",
model.spawn_calls.load(std::sync::atomic::Ordering::SeqCst),
model.child_calls.load(std::sync::atomic::Ordering::SeqCst),
+ crate::cron::list_runs(&config, &job.id, 10),
);
panic!("scheduled child never reached its model");
}