mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 21:24:32 +03:00
10 lines
185 B
Python
10 lines
185 B
Python
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()
|