Skip to content

Commit

Permalink
Merge pull request #209 from rtCamp/fix/backup-bench-supervisor-configs
Browse files Browse the repository at this point in the history
Fix backup of workers in bench
  • Loading branch information
Xieyt authored Jun 25, 2024
2 parents 00912d8 + 6607abd commit 549b8b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frappe_manager/site_manager/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,7 @@ def backup_restore_workers_supervisor(self, backup_manager: BackupManager):
backup_manager.restore(backup, force=True)

def backup_workers_supervisor_conf(self):
# TODO this can be given to woker class ?
backup_workers_manager = BackupManager(name='workers', backup_group_name='workers')
# TODO use backup manager
# take backup
backup_workers_manager.backup(self.workers.supervisor_config_path, bench_name=self.name)

if self.workers.supervisor_config_path.exists():
Expand All @@ -586,7 +583,7 @@ def backup_workers_supervisor_conf(self):
continue
if file_path_abs.endswith(".fm.supervisor.conf"):
from_path = file_path
backup_workers_manager.backup(from_path)
backup_workers_manager.backup(from_path, bench_name=self.name)
file_path.unlink()
return backup_workers_manager

Expand Down

0 comments on commit 549b8b8

Please sign in to comment.