##// END OF EJS Templates
caches: reduce timeouts on flock, and provide error output about filename which we cannot lock at.
marcink -
r2941:49e7d41f default
parent child Browse files
Show More
@@ -109,10 +109,11 b' class CustomLockFactory(FileLock):'
109 raise
109 raise
110 elif (time.time() - start_lock_time) > timeout:
110 elif (time.time() - start_lock_time) > timeout:
111 # waited to much time on a lock, better fail than loop for ever
111 # waited to much time on a lock, better fail than loop for ever
112 log.error('Failed to acquire lock on %s file', self.filename)
112 raise
113 raise
113
114
114 log.debug('Failed to acquire lock, retry in 0.1')
115 log.debug('Failed to acquire lock, retry in 0.03')
115 gevent.sleep(0.1)
116 gevent.sleep(0.03)
116
117
117 fcntl.flock = gevent_flock
118 fcntl.flock = gevent_flock
118 return fcntl
119 return fcntl
General Comments 0
You need to be logged in to leave comments. Login now