Commit 8ba012ba by Guba Sándor

storage.local_tasks: added local task for create_from_url

parent a02e1932
......@@ -14,3 +14,11 @@ def destroy(disk, user):
@celery.task
def restore(disk, user):
disk.restore(task_uuid=restore.request.id, user=user)
@celery.task
def create_from_url(Disk, url, params, user):
Disk.create_from_url(url=url,
params=params,
task_uuid=create_from_url.request.id,
user=user)
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