Bump blocking threshold from 5 seconds to 10 seconds
This commit is contained in:
parent
d6be6adf8b
commit
11211d48eb
@ -104,17 +104,17 @@ class KeepAliveHandler(threading.Thread):
|
|||||||
total = 0
|
total = 0
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
f.result(5)
|
f.result(10)
|
||||||
break
|
break
|
||||||
except concurrent.futures.TimeoutError:
|
except concurrent.futures.TimeoutError:
|
||||||
total += 5
|
total += 10
|
||||||
try:
|
try:
|
||||||
frame = sys._current_frames()[self._main_thread_id]
|
frame = sys._current_frames()[self._main_thread_id]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
msg = self.block_msg
|
msg = self.block_msg
|
||||||
else:
|
else:
|
||||||
stack = traceback.format_stack(frame)
|
stack = traceback.format_stack(frame)
|
||||||
msg = '%s\nLoop thread stacktrace:\n%s' % (self.block_msg, ''.join(stack))
|
msg = '%s\nLoop thread traceback (most recent call last):\n%s' % (self.block_msg, ''.join(stack))
|
||||||
log.warning(msg, total)
|
log.warning(msg, total)
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user