bgneal@520: """ bgneal@520: Celery tasks for the accounts application. bgneal@520: bgneal@520: """ bgneal@750: from __future__ import absolute_import bgneal@750: bgneal@750: from celery import shared_task bgneal@520: bgneal@520: from accounts.stats import update_user_stats bgneal@520: bgneal@520: bgneal@750: @shared_task bgneal@520: def user_stats_task(user_id): bgneal@520: """ bgneal@520: Run the update_user_stats() function on a new task. bgneal@520: bgneal@520: """ bgneal@520: update_user_stats(user_id)