annotate forums/tasks.py @ 630:63603e931503

Fix bug; user_logged_out signal can be sent with user is None.
author Brian Neal <bgneal@gmail.com>
date Wed, 14 Nov 2012 17:47:01 -0600
parents f3fded5df64b
children aeafbf3ecebf
rev   line source
bgneal@522 1 """
bgneal@522 2 Celery tasks for the forums application.
bgneal@522 3
bgneal@522 4 """
bgneal@522 5 from celery.task import task
bgneal@522 6
bgneal@522 7 import forums.latest
bgneal@522 8
bgneal@522 9
bgneal@522 10 @task
bgneal@522 11 def new_post_task(post_id):
bgneal@522 12 """
bgneal@522 13 This task performs new post processing on a Celery task.
bgneal@522 14
bgneal@522 15 """
bgneal@522 16 forums.latest.process_new_post(post_id)
bgneal@522 17
bgneal@522 18
bgneal@522 19 @task
bgneal@595 20 def updated_post_task(post_id):
bgneal@595 21 """
bgneal@595 22 This task performs updated post processing on a Celery task.
bgneal@595 23
bgneal@595 24 """
bgneal@595 25 forums.latest.process_updated_post(post_id)
bgneal@595 26
bgneal@595 27
bgneal@595 28 @task
bgneal@522 29 def new_topic_task(topic_id):
bgneal@522 30 """
bgneal@522 31 This task performs new topic processing on a Celery task.
bgneal@522 32
bgneal@522 33 """
bgneal@522 34 forums.latest.process_new_topic(topic_id)
bgneal@595 35
bgneal@595 36
bgneal@595 37 @task
bgneal@595 38 def updated_topic_task(topic_id):
bgneal@595 39 """
bgneal@595 40 This task performs updated topic processing on a Celery task.
bgneal@595 41
bgneal@595 42 """
bgneal@595 43 forums.latest.process_updated_topic(topic_id)