view gpp/accounts/tasks.py @ 542:008b21c082b2

Updated requirements.txt file after updating to latest Haystack.
author Brian Neal <bgneal@gmail.com>
date Tue, 10 Jan 2012 21:14:10 -0600
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)