Skip to content

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

feat(cron): add scheduler_scope helper to DocScope

Steven Enamakelfa1d56dc9c57
diff --git a/crates/openhuman-core/src/cron/documents_port.rs b/crates/openhuman-core/src/cron/documents_port.rs
index f08d3cbd9a..dbab3e1edf 100644
--- a/crates/openhuman-core/src/cron/documents_port.rs
+++ b/crates/openhuman-core/src/cron/documents_port.rs
@@ -104,6 +104,11 @@ impl DocScope {
)
}
+ /// Stable identity for the module's process-local scheduler slot.
+ pub(crate) fn scheduler_scope(&self) -> String {
+ format!("openhuman-cron:{}", self.key())
+ }
+
fn documents(&self) -> Result<Arc<dyn DocumentStore>, StorageError> {
let backend = match &self.backend {
Some(backend) => Arc::clone(backend),