The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/cron/scheduler/agent_run.rs,crates/openhuman-core/src
Steven Enamakela72f0225ec74
diff --git a/crates/openhuman-core/src/cron/scheduler/agent_run.rs b/crates/openhuman-core/src/cron/scheduler/agent_run.rsindex 5f7bc3e789..910b8c4248 100644--- a/crates/openhuman-core/src/cron/scheduler/agent_run.rs+++ b/crates/openhuman-core/src/cron/scheduler/agent_run.rs@@ -13,22 +13,6 @@ use {tinyflows_bus::schedule::types::CronJob, tinyflows_bus::schedule::types::Se/// by the `composio_execute` handler via the run context (`OpenHumanRunExt`).pub(super) const MORNING_BRIEFING_TASK_RECENCY_SECS: u64 = 24 * 60 * 60;-/// [`run_agent_job_for_run`] under a fresh run id.-#[cfg(test)]-pub(super) async fn run_agent_job(- config: &Config,- job: &CronJob,-) -> (bool, String, Option<String>) {- let run_id = uuid::Uuid::new_v4().to_string();- run_agent_job_for_run(- &crate::core::runtime::DispatchCtx::host_default(),- config,- job,- &run_id,- )- .await-}-pub(super) async fn run_agent_job_for_run(ctx: &crate::core::runtime::DispatchCtx,config: &Config,@@ -288,6 +272,13 @@ pub(super) fn build_agent_for_cron_job(build_cron_agent(ctx, config, job, host_agent)}+#[cfg(test)]+#[path = "agent_run_tests.rs"]+pub(super) mod tests;++#[cfg(test)]+pub(super) use tests::run_agent_job;+fn build_cron_agent(ctx: &crate::core::runtime::DispatchCtx,config: &Config,diff --git a/crates/openhuman-core/src/cron/scheduler/delivery.rs b/crates/openhuman-core/src/cron/scheduler/delivery.rsindex 7fdf96513d..eb5b2923f8 100644--- a/crates/openhuman-core/src/cron/scheduler/delivery.rs+++ b/crates/openhuman-core/src/cron/scheduler/delivery.rs@@ -112,21 +112,6 @@ pub(super) fn cron_result_should_alert(success: bool, output: &str) -> bool {!success || !cron_output_is_empty(output)}-/// [`deliver_run`] under a fresh run id, discarding the status.-#[cfg(test)]-pub(super) async fn deliver_if_configured(- ctx: &crate::core::runtime::DispatchCtx,- config: &Config,- job: &CronJob,- output: &str,- success: bool,-) -> Result<()> {- let run_id = uuid::Uuid::new_v4().to_string();- deliver_run(ctx, config, job, &run_id, output, success)- .await- .map(|_| ())-}-pub(super) async fn deliver_run(ctx: &crate::core::runtime::DispatchCtx,config: &Config,@@ -328,3 +313,10 @@ pub(super) fn push_cron_alert(config: &Config, job: &CronJob, output: &str) {}}}++#[cfg(test)]+#[path = "delivery_tests.rs"]+pub(super) mod tests;++#[cfg(test)]+pub(super) use tests::deliver_if_configured;