Do not reschedule parent sync task if parent is unknown. (#1349)

This commit is contained in:
Koen van Hove
2026-01-30 15:23:06 +01:00
committed by GitHub
parent 07b0fc2955
commit 822ff1f78b
+13 -6
View File
@@ -17,7 +17,7 @@ use crate::{
commons::{
actor::Actor,
crypto::dispatch::signerinfo::SignerInfo,
error::FatalError,
error::{Error, FatalError},
eventsourcing::{Aggregate, AggregateStore, WalStore, WalSupport},
storage::Ident,
version::KrillVersion,
@@ -378,11 +378,18 @@ impl Scheduler {
{
Err(e) => {
let next = self.config.requeue_remote_failed();
error!(
"Failed to synchronize CA '{ca}' with its parent '{parent}'. Will reschedule to: '{next}'. Error: {e}"
);
Ok(TaskResult::Reschedule(next))
if let Error::CaParentUnknown(..) = e {
warn!(
"CA '{ca}' tried to sync with parent '{parent}'. Parent is unknown. Not rescheduling. Error: {e}"
);
Ok(TaskResult::Done)
} else {
error!(
"Failed to synchronize CA '{ca}' with its parent '{parent}'. Will reschedule to: '{next}'. Error: {e}"
);
Ok(TaskResult::Reschedule(next))
}
}
Ok(true) => {
let next = self.config.ca_refresh_next();