Mercurial > public > sg101
view gpp/forums/tasks.py @ 531:1f92a53db575
Adding a fabric file.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 23 Dec 2011 23:11:45 +0000 |
parents | 82b97697312e |
children |
line wrap: on
line source
""" Celery tasks for the forums application. """ from celery.task import task import forums.latest @task def new_post_task(post_id): """ This task performs new post processing on a Celery task. """ forums.latest.process_new_post(post_id) @task def new_topic_task(topic_id): """ This task performs new topic processing on a Celery task. """ forums.latest.process_new_topic(topic_id)