Repository: incubator-ariatosca Updated Branches: refs/heads/database_locked_poc a34d7b954 -> 7e70d719f (forced update)
wip Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/7e70d719 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/7e70d719 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/7e70d719 Branch: refs/heads/database_locked_poc Commit: 7e70d719ffec65ad8e166b872e04023c2e6bb496 Parents: 180e0a1 Author: max-orlov <ma...@gigaspaces.com> Authored: Tue Jun 6 17:05:21 2017 +0300 Committer: max-orlov <ma...@gigaspaces.com> Committed: Tue Jun 6 18:11:25 2017 +0300 ---------------------------------------------------------------------- aria/storage/sql_mapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/7e70d719/aria/storage/sql_mapi.py ---------------------------------------------------------------------- diff --git a/aria/storage/sql_mapi.py b/aria/storage/sql_mapi.py index 4d7e233..68d0ff6 100644 --- a/aria/storage/sql_mapi.py +++ b/aria/storage/sql_mapi.py @@ -405,7 +405,7 @@ def init_storage(base_dir, filename='db.sqlite'): path=os.path.join(base_dir, filename)) - engine = create_engine(uri) + engine = create_engine(uri, connect_args=dict(timeout=15)) session_factory = orm.sessionmaker(bind=engine) session = orm.scoped_session(session_factory=session_factory)