Mercurial > public > sg101
annotate accounts/tasks.py @ 1178:a584caef1576
Remove Catch a Wave Radio link.
Google gives a big scary warning if you try to follow this link.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 13 Apr 2019 14:38:40 -0500 |
parents | aeafbf3ecebf |
children |
rev | line source |
---|---|
bgneal@520 | 1 """ |
bgneal@520 | 2 Celery tasks for the accounts application. |
bgneal@520 | 3 |
bgneal@520 | 4 """ |
bgneal@750 | 5 from __future__ import absolute_import |
bgneal@750 | 6 |
bgneal@750 | 7 from celery import shared_task |
bgneal@520 | 8 |
bgneal@520 | 9 from accounts.stats import update_user_stats |
bgneal@520 | 10 |
bgneal@520 | 11 |
bgneal@750 | 12 @shared_task |
bgneal@520 | 13 def user_stats_task(user_id): |
bgneal@520 | 14 """ |
bgneal@520 | 15 Run the update_user_stats() function on a new task. |
bgneal@520 | 16 |
bgneal@520 | 17 """ |
bgneal@520 | 18 update_user_stats(user_id) |