Skip to content

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

refactor(cron): use local storage open helper in test hook

Steven Enamakelcab3c9b27784
diff --git a/crates/openhuman-core/src/cron/store.rs b/crates/openhuman-core/src/cron/store.rs
index 67bd36e223..81dc092b2a 100644
--- a/crates/openhuman-core/src/cron/store.rs
+++ b/crates/openhuman-core/src/cron/store.rs
@@ -313,12 +313,7 @@ pub(crate) fn force_next_run_for_test(
at: DateTime<Utc>,
) -> Result<()> {
use tinystoragedrivers::Precondition;
- let opened = crate::storage::local::open_standing(
- &db_path(config),
- "cron::store",
- config,
- &|backend, scope, config| legacy_import(backend, scope, config),
- )?;
+ let opened = crate::storage::local::open("cron::store", &config.workspace_dir)?;
let docs = std::sync::Arc::clone(opened.scoped()?.documents());
let job_id = job_id.to_string();
run(async move {