Skip to content

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

chore: files changed crates/openhuman-core/src/cron/store.rs

Steven Enamakel0f5b5566b3ee
diff --git a/crates/openhuman-core/src/cron/store.rs b/crates/openhuman-core/src/cron/store.rs
index 34d59331b1..6264f14eea 100644
--- a/crates/openhuman-core/src/cron/store.rs
+++ b/crates/openhuman-core/src/cron/store.rs
@@ -202,7 +202,7 @@ pub fn update_job(config: &Config, job_id: &str, patch: CronJobPatch) -> Result<
pub(crate) fn update_job_with_origin(
config: &Config,
job_id: &str,
- patch: CronJobPatch,
+ mut patch: CronJobPatch,
trusted_origin: Option<tinyflows_bus::schedule::types::JobOrigin>,
) -> Result<CronJob> {
limits::check_patch(config, &patch)?;
@@ -223,6 +223,12 @@ pub(crate) fn update_job_with_origin(
trusted_origin.as_ref(),
)
.map_err(anyhow::Error::msg)?;
+
+ // Persist exactly the pair we validated. Sending only the changed
+ // field would let two concurrent partial route updates combine into
+ // a delivery/origin pair that neither caller validated.
+ patch.delivery = Some(delivery);
+ patch.origin = Some(effective_origin);
}
store_blocking(
config,