Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions src/server/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down