Mercurial > wikked
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/backend.py Sun Dec 08 12:51:58 2013 -0800 @@ -0,0 +1,17 @@ +import logging +from celery import Celery +from utils import find_wiki_root + + +logging.basicConfig(level=logging.DEBUG) + + +app = Celery( + 'wikked', + broker='amqp://', + backend='amqp://', + include=['wikked.tasks']) + +if __name__ == '__main__': + app.start() +