uncloud-mravi/uncloud_pay/tasks.py
2020-12-26 11:22:51 +01:00

11 lines
254 B
Python

from celery import shared_task
from .models import *
import uuid
from uncloud.models import UncloudTask
@shared_task(bind=True)
def check_balance(self):
UncloudTask.objects.create(task_id=self.id)
print("for each user res is 50")
return 50