Merge pull request #2858 from overleaf/sk-make-lock-timeout-configurable

Make lock timeout configurable

GitOrigin-RevId: c1df72a7cae56db125e090ada75b2c56ca9853bb
This commit is contained in:
Timothée Alby
2020-06-03 10:30:33 +00:00
committed by Copybot
parent c806d27b22
commit c4ec032ffa
6 changed files with 49 additions and 7 deletions
@@ -38,7 +38,16 @@ describe('LockManager - getting the lock', function() {
return { auth() {} }
}
},
'settings-sharelatex': { redis: {} },
'settings-sharelatex': {
redis: {},
lockManager: {
lockTestInterval: 50,
maxTestInterval: 1000,
maxLockWaitTime: 10000,
redisLockExpiry: 30,
slowExecutionThreshold: 5000
}
},
'metrics-sharelatex': {
inc() {},
gauge() {}
@@ -38,7 +38,16 @@ describe('LockManager - trying the lock', function() {
}
}
},
'settings-sharelatex': { redis: {} },
'settings-sharelatex': {
redis: {},
lockManager: {
lockTestInterval: 50,
maxTestInterval: 1000,
maxLockWaitTime: 10000,
redisLockExpiry: 30,
slowExecutionThreshold: 5000
}
},
'metrics-sharelatex': {
inc() {}
}