Skip to content

Commit 3106d23

Browse files
authored
Merge pull request #1930 from weaviate/feature/cancel-restore
Support new backup restore statuses
2 parents 3fc8075 + a486fef commit 3106d23

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

integration/test_backup_v4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def test_create_and_restore_backup_without_waiting(
225225
BackupStatus.TRANSFERRED,
226226
BackupStatus.TRANSFERRING,
227227
BackupStatus.STARTED,
228+
BackupStatus.FINALIZING,
228229
]
229230
if restore_status.status == BackupStatus.SUCCESS:
230231
break

weaviate/backup/backup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class BackupStatus(str, Enum):
4141
STARTED = "STARTED"
4242
TRANSFERRING = "TRANSFERRING"
4343
TRANSFERRED = "TRANSFERRED"
44+
CANCELLING = "CANCELLING"
45+
FINALIZING = "FINALIZING"
4446
SUCCESS = "SUCCESS"
4547
FAILED = "FAILED"
4648
CANCELED = "CANCELED"

0 commit comments

Comments
 (0)