bgneal@522: """
bgneal@522: Celery tasks for the forums application.
bgneal@522: 
bgneal@522: """
bgneal@522: from celery.task import task
bgneal@522: 
bgneal@522: import forums.latest
bgneal@522: 
bgneal@522: 
bgneal@522: @task
bgneal@522: def new_post_task(post_id):
bgneal@522:     """
bgneal@522:     This task performs new post processing on a Celery task.
bgneal@522: 
bgneal@522:     """
bgneal@522:     forums.latest.process_new_post(post_id)
bgneal@522: 
bgneal@522: 
bgneal@522: @task
bgneal@595: def updated_post_task(post_id):
bgneal@595:     """
bgneal@595:     This task performs updated post processing on a Celery task.
bgneal@595: 
bgneal@595:     """
bgneal@595:     forums.latest.process_updated_post(post_id)
bgneal@595: 
bgneal@595: 
bgneal@595: @task
bgneal@522: def new_topic_task(topic_id):
bgneal@522:     """
bgneal@522:     This task performs new topic processing on a Celery task.
bgneal@522: 
bgneal@522:     """
bgneal@522:     forums.latest.process_new_topic(topic_id)
bgneal@595: 
bgneal@595: 
bgneal@595: @task
bgneal@595: def updated_topic_task(topic_id):
bgneal@595:     """
bgneal@595:     This task performs updated topic processing on a Celery task.
bgneal@595: 
bgneal@595:     """
bgneal@595:     forums.latest.process_updated_topic(topic_id)