Mercurial > public > sg101
comparison forums/tasks.py @ 595:f3fded5df64b
Forum topic & post updates now affect the RSS feed data in Redis.
This is for bitbucket issue #10.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 24 May 2012 15:49:15 -0500 |
parents | ee87ea74d46b |
children | aeafbf3ecebf |
comparison
equal
deleted
inserted
replaced
594:2469d5864249 | 595:f3fded5df64b |
---|---|
15 """ | 15 """ |
16 forums.latest.process_new_post(post_id) | 16 forums.latest.process_new_post(post_id) |
17 | 17 |
18 | 18 |
19 @task | 19 @task |
20 def updated_post_task(post_id): | |
21 """ | |
22 This task performs updated post processing on a Celery task. | |
23 | |
24 """ | |
25 forums.latest.process_updated_post(post_id) | |
26 | |
27 | |
28 @task | |
20 def new_topic_task(topic_id): | 29 def new_topic_task(topic_id): |
21 """ | 30 """ |
22 This task performs new topic processing on a Celery task. | 31 This task performs new topic processing on a Celery task. |
23 | 32 |
24 """ | 33 """ |
25 forums.latest.process_new_topic(topic_id) | 34 forums.latest.process_new_topic(topic_id) |
35 | |
36 | |
37 @task | |
38 def updated_topic_task(topic_id): | |
39 """ | |
40 This task performs updated topic processing on a Celery task. | |
41 | |
42 """ | |
43 forums.latest.process_updated_topic(topic_id) |