diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-13 17:26:25 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-13 17:26:25 +0100 |
commit | efbbd480ddc62e695123d31c31d233b0df5155bd (patch) | |
tree | bc2fb465edd5050d83c97f280b1aac8e023fe3e5 /pyblackbird_cc/users/tasks.py |
After first pre-commit processing
Diffstat (limited to '')
-rw-r--r-- | pyblackbird_cc/users/tasks.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pyblackbird_cc/users/tasks.py b/pyblackbird_cc/users/tasks.py new file mode 100644 index 0000000..ca51cd7 --- /dev/null +++ b/pyblackbird_cc/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() |