11 lines
262 B
Python
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
|