Mercurial > wikked
comparison backend.py @ 138:df04e6a875ba
Added Celery-powered background updates to wiki pages.
TODO: need to make it more customizable and optional.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 08 Dec 2013 12:51:58 -0800 |
parents | |
children | 87606db8c641 |
comparison
equal
deleted
inserted
replaced
137:d29007463b70 | 138:df04e6a875ba |
---|---|
1 import logging | |
2 from celery import Celery | |
3 from utils import find_wiki_root | |
4 | |
5 | |
6 logging.basicConfig(level=logging.DEBUG) | |
7 | |
8 | |
9 app = Celery( | |
10 'wikked', | |
11 broker='amqp://', | |
12 backend='amqp://', | |
13 include=['wikked.tasks']) | |
14 | |
15 if __name__ == '__main__': | |
16 app.start() | |
17 |