uncloud/uncloud_pay/tasks.py
2020-12-26 14:42:53 +01:00

11 lines
262 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.request.id)
print("for each user res is 50")
return 50