mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-14 13:36:40 +03:00
12 lines
235 B
Python
12 lines
235 B
Python
from django.contrib.auth import get_user_model
|
|
|
|
from config import celery_app
|
|
|
|
User = get_user_model()
|
|
|
|
|
|
@celery_app.task()
|
|
def get_users_count():
|
|
"""A pointless Celery task to demonstrate usage."""
|
|
return User.objects.count()
|