From ed276a1cb2b036650439d031f76a3eee717180ce Mon Sep 17 00:00:00 2001 From: Radko Krkos Date: Tue, 21 May 2019 12:20:00 +0200 Subject: [PATCH 2/3] Fix: Fixed enricher failure on DB restart. * The enricher plugin's WhoIs module is reloading configuration from the DB periodically, what results in delayed failure after DB restart. This allows for reconnection in that case, effectively eliminating the issue. * SQLAlchemy's Query class is extended to RetryingQuery and that one is used instead for the DB sessions. (Redmine issue: #4569) --- lib/mentat/services/sqlstorage.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/mentat/services/sqlstorage.py b/lib/mentat/services/sqlstorage.py index 4935787d..40320c6d 100644 --- a/lib/mentat/services/sqlstorage.py +++ b/lib/mentat/services/sqlstorage.py @@ -27,6 +27,7 @@ __credits__ = "Pavel Kácha , Andrea Kropáčová