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