Add automatic storage replication

Adds a worker to automatically replicate data between storages and update the database accordingly
This commit is contained in:
Joseph Schorr 2015-06-28 13:29:22 +03:00 committed by Joseph Schorr
parent c693afca6a
commit 724b1607d7
18 changed files with 259 additions and 35 deletions

View file

@ -98,6 +98,9 @@ class BaseStorage(StoragePaths):
def get_checksum(self, path):
raise NotImplementedError
def copy_to(self, destination, path):
raise NotImplementedError
class DigestInvalidException(RuntimeError):
pass
@ -119,6 +122,3 @@ class BaseStorageV2(BaseStorage):
""" Complete the chunked upload and store the final results in the path indicated.
"""
raise NotImplementedError