Commit 31c9b14a by Bálint Máhonfai

Add store upload link and exported filename to disk

parent 889845e1
......@@ -473,10 +473,12 @@ class Disk(TimeStampedModel):
disk.save()
return disk
def export(self, format, timeout=600):
def export(self, format, upload_link, timeout=600):
exported_name = self.name if self.name != '' else self.filename
queue_name = self.get_remote_queue_name('storage', priority='slow')
storage_tasks.export.apply_async(
args=[self.get_disk_desc(), format],
args=[self.get_disk_desc(), format, exported_name, upload_link],
queue=queue_name).get(timeout=timeout)
def destroy(self, user=None, task_uuid=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment