Skip to content

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

fix(runtime): give module bus worker threads the agent stack size

Steven Enamakelbc9de8465e3b
diff --git a/crates/openhuman-core/src/modules/runtime.rs b/crates/openhuman-core/src/modules/runtime.rs
index 7ba4bcc648..cc6a93afe6 100644
--- a/crates/openhuman-core/src/modules/runtime.rs
+++ b/crates/openhuman-core/src/modules/runtime.rs
@@ -38,7 +38,7 @@ use std::time::Duration;
use serde::de::DeserializeOwned;
use serde::Serialize;
-use tinybus::module::{ModuleRuntime, RuntimeNames};
+use tinybus::module::{ModuleRuntime, RuntimeNames, RuntimeOptions};
/// The module bus, built once on first use.
static RUNTIME: OnceLock<Result<ModuleRuntime, String>> = OnceLock::new();
@@ -86,7 +86,14 @@ fn runtime_now() -> tinybus::Result<&'static ModuleRuntime> {
thread: "openhuman-module-bus".to_string(),
worker: "openhuman-module-worker".to_string(),
};
- ModuleRuntime::start(&names, None).map_err(|error| error.to_string())
+ ModuleRuntime::start_with_options(
+ &names,
+ None,
+ RuntimeOptions {
+ thread_stack_size: Some(crate::core::runtime::AGENT_WORKER_STACK_BYTES),
+ },
+ )
+ .map_err(|error| error.to_string())
});
let runtime = started
.as_ref()
diff --git a/vendor/tinybus b/vendor/tinybus
index aa36051e2d..a25300a99b 160000
--- a/vendor/tinybus
+++ b/vendor/tinybus
@@ -1 +1 @@
-Subproject commit aa36051e2d384b09a1fb7871758fcf22c2a7e709
+Subproject commit a25300a99b4fc31f271e0077b417ee245cbe69b7