mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
management: Provide a common lockfile dir, and a decorator for it.
Factor out the repeated pattern of taking a lock, or immediately aborting with a message if it cannot be acquired. The exit code in that situation is changed to be exit code 1, rather than the successful 0; we are likely missing new work since that process started. We move the lockfiles to a common directory under `/srv/zulip-locks` rather than muddy up `/home/zulip/deployments`.
This commit is contained in:
committed by
Tim Abbott
parent
572fafd6b9
commit
11dd6791c4
@@ -208,6 +208,7 @@ class zulip::app_frontend_base {
|
||||
'/home/zulip/tornado',
|
||||
'/home/zulip/prod-static',
|
||||
'/home/zulip/deployments',
|
||||
'/srv/zulip-locks',
|
||||
'/srv/zulip-emoji-cache',
|
||||
'/srv/zulip-uploaded-files-cache',
|
||||
]:
|
||||
|
Reference in New Issue
Block a user