Skip to content

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

fix(cron): deliver scheduled run output to the configured channel

Steven Enamakel87d10b3fc95f
diff --git a/crates/openhuman-core/src/cron/scheduler/run_delivery.rs b/crates/openhuman-core/src/cron/scheduler/run_delivery.rs
index 3f8fc79773..0065671102 100644
--- a/crates/openhuman-core/src/cron/scheduler/run_delivery.rs
+++ b/crates/openhuman-core/src/cron/scheduler/run_delivery.rs
@@ -106,7 +106,7 @@ impl TriggerSink for HostTriggers {
// `[components] flows = false`: schedule-triggered flows stop
// while agent, shell and system jobs keep running. The tick is
// answered, not retried, so the row's recurrence moves on.
- if !flows_component_enabled() {
+ if !self.binding.dispatch_ctx().components().flows {
tracing::debug!(
target: "flows",
%flow_id,
@@ -146,12 +146,6 @@ impl TriggerSink for HostTriggers {
}
}
-/// Whether `[components] flows` is on in the ambient context. No context
-/// means nothing narrowed it.
-fn flows_component_enabled() -> bool {
- crate::core::runtime::CoreContext::current().is_none_or(|ctx| ctx.components().flows)
-}
-
/// A host-owned system job (`system:<name>`): announced on the bus, then its
/// registered handler is awaited and its result is the run's result. Without a
/// handler the job is announce-only and `ok` on dispatch.