Mercurial > public > sg101
comparison accounts/tasks.py @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/accounts/tasks.py@e94570675664 |
children | aeafbf3ecebf |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 """ | |
2 Celery tasks for the accounts application. | |
3 | |
4 """ | |
5 from celery.task import task | |
6 | |
7 from accounts.stats import update_user_stats | |
8 | |
9 | |
10 @task | |
11 def user_stats_task(user_id): | |
12 """ | |
13 Run the update_user_stats() function on a new task. | |
14 | |
15 """ | |
16 update_user_stats(user_id) |