Commit bc56f9c1 by Dudás Ádám

storage: return job handle in async methods

parent 29065d2d
......@@ -197,7 +197,7 @@ class Disk(TimeStampedModel):
def deploy_async(self, user=None):
"""Execute deploy asynchronously.
local_tasks.deploy.apply_async(args=[self, user],
return local_tasks.deploy.apply_async(args=[self, user],
def destroy(self, user=None, task_uuid=None):
......@@ -211,7 +211,7 @@ class Disk(TimeStampedModel):
return True
def destroy_async(self, user=None):
local_tasks.destroy.apply_async(args=[self, user],
return local_tasks.destroy.apply_async(args=[self, user],
def restore(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