mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 09:16:51 +00:00
refactor(service): visually break down the move function a bit
This commit is contained in:
parent
fed5735b24
commit
8c8c9a51cc
|
@ -377,8 +377,10 @@ class Service(ABC):
|
||||||
with StoppedService(self):
|
with StoppedService(self):
|
||||||
report_progress(9, job, "Stopped service, starting the move...")
|
report_progress(9, job, "Stopped service, starting the move...")
|
||||||
self.do_move_to_volume(volume, job)
|
self.do_move_to_volume(volume, job)
|
||||||
|
|
||||||
report_progress(98, job, "Move complete, rebuilding...")
|
report_progress(98, job, "Move complete, rebuilding...")
|
||||||
rebuild_system(job, upgrade=False)
|
rebuild_system(job, upgrade=False)
|
||||||
|
|
||||||
Jobs.update(
|
Jobs.update(
|
||||||
job=job,
|
job=job,
|
||||||
status=JobStatus.FINISHED,
|
status=JobStatus.FINISHED,
|
||||||
|
|
Loading…
Reference in a new issue