changeset 8363:90dd59c2a76a

uwsgi: enable reload-on-exception in configuration template In case of severe failures in the stack (not handled by TG), it will thus report "monitored exception detected, respawning worker ...".
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 22 Apr 2020 19:23:05 +0200
parents bee01ae374a2
children 68d4aae74194 e5ccabbc3cd7 106323ecfdfa
files kallithea/lib/paster_commands/template.ini.mako
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/paster_commands/template.ini.mako	Wed Apr 22 14:13:47 2020 +0200
+++ b/kallithea/lib/paster_commands/template.ini.mako	Wed Apr 22 19:23:05 2020 +0200
@@ -137,6 +137,7 @@
 single-interpreter = true
 die-on-term = true                     ; Shutdown when receiving SIGTERM (default is respawn)
 need-app = true                        ; Exit early if no app can be loaded.
+reload-on-exception = true             ; Don't assume that the application worker can process more requests after a severe error
 
 %endif
 <%text>## middleware for hosting the WSGI application under a URL prefix</%text>