12 lines
254 B
Python
12 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
|