mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
add a close() method to LockManager to allow clean shutdown
This commit is contained in:
@@ -70,3 +70,7 @@ module.exports = LockManager =
|
||||
action = (releaseLock) ->
|
||||
releaseLock()
|
||||
LockManager.runWithLock "HistoryLock:HealthCheck:host=#{HOST}:pid=#{PID}:random=#{RND}", action, callback
|
||||
|
||||
close: (callback) ->
|
||||
rclient.quit()
|
||||
rclient.once 'end', callback
|
||||
|
||||
Reference in New Issue
Block a user