aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/users/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning/users/tasks.py')
-rw-r--r--alphabetlearning/users/tasks.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/alphabetlearning/users/tasks.py b/alphabetlearning/users/tasks.py
new file mode 100644
index 0000000..ca51cd7
--- /dev/null
+++ b/alphabetlearning/users/tasks.py
@@ -0,0 +1,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()