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
refactor(flows): share run timeout constant between ops and adapter
Steven Enamakel827d13e804f0
diff --git a/crates/openhuman-core/src/flows/ops.rs b/crates/openhuman-core/src/flows/ops.rsindex 89de8252d9..0b017bb5b7 100644--- a/crates/openhuman-core/src/flows/ops.rs+++ b/crates/openhuman-core/src/flows/ops.rs@@ -57,7 +57,7 @@ use {tinyflows_catalog::Flow, tinyflows_catalog::FlowRun};/// Overall safety bound on a single `flows_run` / `flows_resume`. Individual/// capabilities have their own timeouts (HTTP, sandbox), but a hung LLM/tool/// call must never let the RPC block indefinitely — this caps the whole run.-const FLOW_RUN_TIMEOUT_SECS: u64 = 600;+const FLOW_RUN_TIMEOUT_SECS: u64 = crate::flows::runs_adapter::RUN_TIMEOUT_SECS;/// How long a run may sit parked at a human-in-the-loop approval gate/// (`pending_approval`) before the TTL sweep expires it to a terminaldiff --git a/crates/openhuman-core/src/flows/runs_adapter.rs b/crates/openhuman-core/src/flows/runs_adapter.rsindex 17f07fa613..ff8e094146 100644--- a/crates/openhuman-core/src/flows/runs_adapter.rs+++ b/crates/openhuman-core/src/flows/runs_adapter.rs@@ -20,7 +20,8 @@ use crate::flows::caps_host::{self, CapsHostRegistration};use crate::flows::catalog_storage::{self, CatalogStorageRegistration};use crate::modules::tinyflows as module;-const RUN_TIMEOUT_MS: u64 = 600_000;+pub(crate) const RUN_TIMEOUT_SECS: u64 = 600;+const RUN_TIMEOUT_MS: u64 = RUN_TIMEOUT_SECS * 1_000;pub(crate) use session::{RunKey, RunSession};