local_tasks.py 328 Bytes
Newer Older
1
from manager.mancelery import celery
Guba Sándor committed
2 3 4 5


@celery.task
def deploy(disk, user):
6
    disk.deploy(task_uuid=deploy.request.id, user=user)
Guba Sándor committed
7 8


Guba Sándor committed
9
@celery.task
10 11
def destroy(disk, user):
    disk.destroy(task_uuid=destroy.request.id, user=user)
12 13 14 15 16


@celery.task
def restore(disk, user):
    disk.restore(task_uuid=restore.request.id, user=user)