backend/image_markuper/users/tasks.py
Alexander-D-Karpov 8d9d0697da inited django
2022-10-25 23:29:13 +03:00

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()