Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-163-Update-node-state-for-stub-tasks f1060256c -> 94cb2a1b8 
(forced update)


trying to fix the database is locked issue


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/94cb2a1b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/94cb2a1b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/94cb2a1b

Branch: refs/heads/ARIA-163-Update-node-state-for-stub-tasks
Commit: 94cb2a1b88ce6d9deb5fcb8de638134730074df0
Parents: 8c8eb15
Author: max-orlov <[email protected]>
Authored: Mon May 1 13:12:42 2017 +0300
Committer: max-orlov <[email protected]>
Committed: Mon May 1 13:19:00 2017 +0300

----------------------------------------------------------------------
 aria/logger.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/94cb2a1b/aria/logger.py
----------------------------------------------------------------------
diff --git a/aria/logger.py b/aria/logger.py
index 8e15f5b..97d3878 100644
--- a/aria/logger.py
+++ b/aria/logger.py
@@ -195,6 +195,8 @@ class _SQLAlchemyHandler(logging.Handler):
         except BaseException:
             self._session.rollback()
             raise
+        finally:
+            self._session.close()
 
 
 _default_file_formatter = logging.Formatter(

Reply via email to