efbbd48
1 2 3 4 5 6 7 8 9
from celery import shared_task from .models import User @shared_task() def get_users_count(): """A pointless Celery task to demonstrate usage.""" return User.objects.count()