Skip to content

Commit 35affd4

Browse files
committed
Disable the check preventing backups of tasks using static chunks
There doesn't seem to be much purpose to this check - chunks are not even used for backups, and backups of such tasks work fine with the check removed.
1 parent c25755a commit 35affd4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

changelog.d/20251104_153655_roman_restore_backup_from_share.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22

33
- Backups of tasks created from a mounted file share no longer fail to import
44
(<https://github.com/cvat-ai/cvat/pull/9972>)
5+
6+
### Changed
7+
8+
- It is now possible to back up tasks created from a mounted file share that
9+
use static chunk storage
10+
(<https://github.com/cvat-ai/cvat/pull/9972>)

cvat/apps/engine/backup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,6 @@ def _export_task(self, zip_obj, target_dir=None):
672672
self._write_annotation_guide(zip_obj, target_dir)
673673

674674
def export_to(self, file: str | ZipFile, target_dir: str | None = None):
675-
if self._db_task.data.storage_method == StorageMethodChoice.FILE_SYSTEM and \
676-
self._db_task.data.storage == StorageChoice.SHARE:
677-
raise Exception('The task cannot be exported because it does not contain any raw data')
678-
679675
if isinstance(file, str):
680676
with ZipFile(file, 'w') as zf:
681677
self._export_task(zip_obj=zf, target_dir=target_dir)

0 commit comments

Comments
 (0)