annotate backend.py @ 172:27492ea65657

More work on initialization/teardown: - Share the same Mercurial command server across requests. - Better handling of database sessions.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 28 Jan 2014 08:16:35 -0800
parents a4a64d6b66cb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
164
a4a64d6b66cb Fixed various bugs:
Ludovic Chabant <ludovic@chabant.com>
parents: 140
diff changeset
1 from wikked.tasks import app
138
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
3 if __name__ == '__main__':
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
4 app.start()
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5