view gpp/accounts/tasks.py @ 533:387d46abcb95

Updated to Haystack 1.2.6. Got the latest Haystack, xapian backend, and queued_search from PyPi. This is for ticket #215.
author Brian Neal <bgneal@gmail.com>
date Mon, 26 Dec 2011 23:05:29 +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)