refactor(service): visually break down the move function a bit

rebuild-when-moving
Houkime 2024-03-13 12:48:11 +00:00
parent fed5735b24
commit 8c8c9a51cc
1 changed files with 2 additions and 0 deletions

View File

@ -377,8 +377,10 @@ class Service(ABC):
with StoppedService(self):
report_progress(9, job, "Stopped service, starting the move...")
self.do_move_to_volume(volume, job)
report_progress(98, job, "Move complete, rebuilding...")
rebuild_system(job, upgrade=False)
Jobs.update(
job=job,
status=JobStatus.FINISHED,