Skip to content

Commit

Permalink
only check backup status on restores
Browse files Browse the repository at this point in the history
  • Loading branch information
nhudson committed Dec 12, 2023
1 parent 1898688 commit ce30950
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tembo-operator/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,19 +313,16 @@ impl CoreDB {
reconcile_extensions(self, ctx.clone(), &coredbs, &name).await?;

// Make sure the initial backup has completed if enabled before finishing
// reconciliation of the CoreDB resource
// reconciliation of the CoreDB resource that is being restored
if cfg.enable_backup
&& self.spec.restore.is_some()
&& self
.status
.as_ref()
.and_then(|s| s.first_recoverability_time)
.is_none()
{
check_backups_status(self, ctx.clone()).await?;
// if let Err(e) = check_backups_status(self, ctx.clone()).await {
// error!("Error checking backups status: {:?}", e);
// return Err(Action::requeue(Duration::from_secs(300)));
// }
}

let recovery_time = self.get_recovery_time(ctx.clone()).await?;
Expand Down

0 comments on commit ce30950

Please sign in to comment.