fix ignoring progress message when not initiated with task

This commit is contained in:
simon 2023-05-04 11:48:38 +07:00
parent b95a659396
commit 170839362e
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 4 additions and 2 deletions

View File

@ -32,6 +32,7 @@ class ElasticBackup:
if not self.reason:
raise ValueError("missing backup reason in ElasticBackup")
if self.task:
self.task.send_progress(["Scanning your index."])
for index in self.index_config:
index_name = index["index_name"]
@ -42,6 +43,7 @@ class ElasticBackup:
self.backup_index(index_name)
if self.task:
self.task.send_progress(["Compress files to zip archive."])
self.zip_it()
if self.reason == "auto":