Skip to content

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

chore(cron): admit legacy v1 collection names in documents port

Steven Enamakel3bc713298008
diff --git a/crates/openhuman-core/src/cron/documents_port.rs b/crates/openhuman-core/src/cron/documents_port.rs
index 3d8ea8f058..9973be13ea 100644
--- a/crates/openhuman-core/src/cron/documents_port.rs
+++ b/crates/openhuman-core/src/cron/documents_port.rs
@@ -36,7 +36,12 @@ use crate::config::Config;
use crate::modules::tinyflows as module;
/// The collections the schedule store owns.
-const COLLECTIONS: [&str; 7] = [
+///
+/// The v2 names (`cron.*`, `tsd.*`) are the current module's. The v1 names stay
+/// admitted so a tinyflows module release that predates the schema (the pinned
+/// artifact is re-pinned only after the epic is released) keeps working against
+/// a fresh database; its v1 collections are not migrated by the owner's steps.
+const COLLECTIONS: [&str; 11] = [
"cron.jobs",
"cron.runs",
"cron.admission",
@@ -44,6 +49,10 @@ const COLLECTIONS: [&str; 7] = [
"tsd.counters",
"tsd.leases",
"tsd.migrations",
+ "cron_jobs",
+ "cron_runs",
+ "cron_counters",
+ "cron_job_policies",
];
/// Where one scope's cron documents live: the workspace whose default backend