Reconcile byte-identical historical offers without allowing another execution
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user