summaryrefslogtreecommitdiff
path: root/odoo/service
diff options
context:
space:
mode:
authorDenis Vermylen <dve@odoo.com>2019-09-19 07:36:36 +0000
committerfw-bot <otis@odoo.com>2019-09-23 14:16:04 +0000
commitbd3e510edbcd62f508dae28f573ee4d1a51bcf87 (patch)
treeb7225c214ff715d2ef19f99f629a1ec2616eec96 /odoo/service
parentc987515c9fd192d365bffb3bc3c3e8bdfe466645 (diff)
[IMP] odoo: dump stacktrace of timed out threaded workers
So the logs contain some indication as to what was exceeding the limits. closes odoo/odoo#37303 X-original-commit: 0a266f444a0abda026d09ad88024dca1c50c92b9 Signed-off-by: Denis Vermylen <Icallhimtest@users.noreply.github.com>
Diffstat (limited to 'odoo/service')
-rw-r--r--odoo/service/server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/service/server.py b/odoo/service/server.py
index 9c4eafcc948..e6ad74bd027 100644
--- a/odoo/service/server.py
+++ b/odoo/service/server.py
@@ -507,6 +507,8 @@ class ThreadedServer(CommonServer):
# We wait there is no processing requests
# other than the ones exceeding the limits, up to 1 min,
# before asking for a reload.
+ _logger.info('Dumping stacktrace of limit exceeding threads before reloading')
+ dumpstacks(thread_idents=[thread.ident for thread in self.limits_reached_threads])
self.reload()
# `reload` increments `self.quit_signals_received`
# and the loop will end after this iteration,