Reduce lock duration
This commit is contained in:
parent
e667eef951
commit
89d761a096
2 changed files with 2 additions and 2 deletions
|
@ -605,7 +605,7 @@ func (c *FileController) CleanupDeletedFiles() {
|
|||
c.cleanupCronRunning = false
|
||||
}()
|
||||
|
||||
lockStatus := c.LockController.TryLock(DeletedObjectQueueLock, time.MicrosecondsAfterHours(24))
|
||||
lockStatus := c.LockController.TryLock(DeletedObjectQueueLock, time.MicrosecondsAfterHours(2))
|
||||
if !lockStatus {
|
||||
log.Warning(fmt.Sprintf("Failed to acquire lock %s", DeletedObjectQueueLock))
|
||||
return
|
||||
|
|
|
@ -55,7 +55,7 @@ func (c *ObjectController) RemoveComplianceHolds() {
|
|||
c.complianceCronRunning = false
|
||||
}()
|
||||
|
||||
lockStatus := c.LockController.TryLock(RemoveComplianceHoldsLock, time.MicrosecondsAfterHours(24))
|
||||
lockStatus := c.LockController.TryLock(RemoveComplianceHoldsLock, time.MicrosecondsAfterHours(2))
|
||||
if !lockStatus {
|
||||
log.Warning(fmt.Sprintf("Failed to acquire lock %s", RemoveComplianceHoldsLock))
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue