Mercurial > public > sg101
view gpp/accounts/tasks.py @ 525:a053fbd3ac98
For #194, create a task to run the queued_search's process_search_queue command periodically.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 19 Dec 2011 01:11:43 +0000 |
parents | e94570675664 |
children |
line wrap: on
line source
""" Celery tasks for the accounts application. """ from celery.task import task from accounts.stats import update_user_stats @task def user_stats_task(user_id): """ Run the update_user_stats() function on a new task. """ update_user_stats(user_id)