Reconcile byte-identical historical offers without allowing another execution

This commit is contained in:
2026-11-18 12:10:27 +01:00
parent cd80bfc704
commit 0f70d8d8f5
3 changed files with 39 additions and 2 deletions
+2 -1
View File
@@ -776,7 +776,8 @@ impl<C: reconcile::SyncClock> Agent<C> {
let job = self.binding.as_ref().context("binding")?.job(&offer.payload_bytes)?;
if Utc::now() >= job.start_before {
self.record(generation, &offer, "", jobs::no_start("expired", "START_DEADLINE_EXPIRED"))?;
} else if !matches!(job.action,rmm_domain::jobs::Action::RunScript{..}) {
} else if !matches!(job.action,rmm_domain::jobs::Action::RunScript{..})
|| (job.execution_identity=="root" && !job.action.full_maintenance()) {
self.record(generation, &offer, "", jobs::no_start("failed","LEGACY_ACTION_RETIRED"))?;
} else if !self.ready(generation,job.execution_identity=="root") {
needs_sync=true;