zulip/zerver
Steve Howell c0bf3bb191 [deploy] Have most queue works commit on success.
Deployment instructions: I think all the queue workers get
restarted automatically, so there is probably nothing special
to do here in the deploy itself, but we will want to monitor
it closely, and the change should make our number of locks go
down.

QueueProcessingWorker.start() now calls consume_and_commit(),
which ensures that we don't hold locks after work actions
by using Django's commit_on_success() decorator.

Obviously, workers that override start() will not call consume_and_commit()
through this code path.  SlowQueryWorker calls commit_on_success()
in its start() method now, and I hope to address MissedMessageWorker soon.

(imported from commit f3f38a7f45730eee8f3b5794371ba5b994017676)
2013-10-17 15:36:39 -04:00
..
fixtures Attempt to convert JIRA mentions to Zulip mentions 2013-10-07 13:59:36 -04:00
lib Supply a name when creating realms. 2013-10-17 13:47:51 -04:00
management create_realm: add a reminder to run set_default_streams. 2013-10-17 13:47:51 -04:00
migrations [schema] Add a name field to zerver_realm. 2013-10-17 13:47:51 -04:00
templatetags [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tests/frontend Test unread.update_unread_subjects() more thoroughly. 2013-10-15 14:57:38 -04:00
views [manual] Use the name instead of the domain for the user-visible realm identifier. 2013-10-17 13:47:51 -04:00
worker [deploy] Have most queue works commit on success. 2013-10-17 15:36:39 -04:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
decorator.py Add Mandrill decorators, credentials, actions 2013-10-10 19:32:21 -04:00
exceptions.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
filters.py Change Humbug => Zulip in name of exception filter module. 2013-08-07 10:00:07 -04:00
finders.py Change Humbug => Zulip in name of finder module. 2013-08-07 10:00:07 -04:00
forms.py Allow MIT to invite coworkers. 2013-09-19 17:14:41 -04:00
handlers.py Change Humbug => Zulip in names of error reporting handlers. 2013-08-07 10:00:07 -04:00
middleware.py Clean up slow log displays 2013-10-02 11:26:58 -04:00
models.py [schema] Add a name field to zerver_realm. 2013-10-17 13:47:51 -04:00
openid.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
retention_policy.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
static_header.txt Change Humbug => Zulip in text/comments. 2013-08-07 10:00:07 -04:00
storage.py Change Humbug => Zulip in name of storage module. 2013-08-07 10:00:07 -04:00
tests.py Test UserActivityWorker. 2013-10-17 15:36:39 -04:00
tornado_callbacks.py Don't cache UserPresence info. 2013-09-17 14:51:56 -04:00
tornadoviews.py Let clients specify how long queues shall live, within limits 2013-08-20 16:19:07 -04:00