view gpp/forums/tasks.py @ 541:06300c08bf81

update tags
author convert-repo
date Tue, 10 Jan 2012 07:57:40 +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)