aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/users/tasks.py
blob: ca51cd7401b10ac31984e1927f3c7fdf480731f6 (plain) (blame)
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()