Show More
@@ -109,10 +109,11 b' class CustomLockFactory(FileLock):' | |||
|
109 | 109 | raise |
|
110 | 110 | elif (time.time() - start_lock_time) > timeout: |
|
111 | 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 | 113 | raise |
|
113 | 114 | |
|
114 |
log.debug('Failed to acquire lock, retry in 0. |
|
|
115 |
gevent.sleep(0. |
|
|
115 | log.debug('Failed to acquire lock, retry in 0.03') | |
|
116 | gevent.sleep(0.03) | |
|
116 | 117 | |
|
117 | 118 | fcntl.flock = gevent_flock |
|
118 | 119 | return fcntl |
General Comments 0
You need to be logged in to leave comments.
Login now