Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Refactor restore.py to improve restore command handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavybullets8 committed May 28, 2024
1 parent 3300658 commit f8e00f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/backup_restore/database/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def _execute_restore_command(self, retries=3, wait=5) -> Dict[str, str]:
}
self.logger.debug(f"Executing restore command on pod: {self.primary_pod} with dump file: {self.backup_file}")

self.command, self.open_mode = self._get_restore_command()

for attempt in range(retries):
try:
if self.backup_file.suffix == '.gz':
Expand Down

0 comments on commit f8e00f2

Please sign in to comment.