uncloud-mravi/uncloud_pay/tasks.py

12 lines
262 B
Python
Raw Normal View History

2020-12-26 10:22:51 +00:00
from celery import shared_task
from .models import *
import uuid
from uncloud.models import UncloudTask
@shared_task(bind=True)
def check_balance(self):
2020-12-26 13:42:53 +00:00
UncloudTask.objects.create(task_id=self.request.id)
2020-12-26 10:22:51 +00:00
print("for each user res is 50")
return 50