Mercurial > public > sg101
view gpp/forums/tasks.py @ 534:98f5facc0030
Clean up the birthday block. Get rid of space between name and comma. Get rid
of bullets.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 27 Dec 2011 01:15:27 +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)