Skip to content

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

test(cron): add origin delivery tests for scheduler

Steven Enamakel1992f9e9443a
diff --git a/crates/openhuman-core/src/cron/origin_tests.rs b/crates/openhuman-core/src/cron/origin_tests.rs
index 0f9875e1c1..fe715965f1 100644
--- a/crates/openhuman-core/src/cron/origin_tests.rs
+++ b/crates/openhuman-core/src/cron/origin_tests.rs
@@ -78,6 +78,8 @@ async fn current_job_origin_reads_the_scoped_turn() {
fn job_with_origin(origin: Option<JobOrigin>) -> CronJob {
CronJob {
+ claim_generation: 0,
+ policy: Default::default(),
id: "job-1".into(),
expression: "* * * * *".into(),
schedule: Schedule::Every { every_ms: 300_000 },
diff --git a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
index 0c15a1787d..eafc253ee3 100644
--- a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
@@ -22,6 +22,8 @@ fn config(tmp: &tempfile::TempDir) -> Config {
fn job(origin: Option<JobOrigin>) -> CronJob {
CronJob {
+ claim_generation: 0,
+ policy: Default::default(),
id: "job-1".into(),
expression: "*/5 * * * *".into(),
schedule: Schedule::Every { every_ms: 300_000 },
diff --git a/crates/openhuman-core/src/cron/scheduler_tests.rs b/crates/openhuman-core/src/cron/scheduler_tests.rs
index 8dc6439004..788a04c023 100644
--- a/crates/openhuman-core/src/cron/scheduler_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_tests.rs
@@ -27,6 +27,8 @@ async fn test_config(tmp: &TempDir) -> Config {
fn test_job(command: &str) -> CronJob {
CronJob {
+ claim_generation: 0,
+ policy: Default::default(),
id: "test-job".into(),
expression: "* * * * *".into(),
schedule: tinyflows_schedule::types::Schedule::Cron {