Skip to content

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

fix(cron): visit agent jobs held in the storage backend

Steven Enamakel3c6232a0ab24
diff --git a/crates/openhuman-core/src/cron/scheduler.rs b/crates/openhuman-core/src/cron/scheduler.rs
index e0f6949fd9..b4af75b57a 100644
--- a/crates/openhuman-core/src/cron/scheduler.rs
+++ b/crates/openhuman-core/src/cron/scheduler.rs
@@ -114,7 +114,11 @@ pub(crate) async fn tick_live_agents(dispatcher: &mut JobDispatcher) {
return;
}
};
- if !crate::cron::store::db_path(&config).exists() {
+ // With a storage backend the agent's jobs live in its backend
+ // scope, not in a per-workspace SQLite file.
+ if crate::storage::installed().is_none()
+ && !crate::cron::store::db_path(&config).exists()
+ {
return;
}
let jobs = match due_jobs(&config, Utc::now()) {