From f140cc972a3ea6fcdcab2f47aaa85369ee389f87 Mon Sep 17 00:00:00 2001 From: Louis Pieterse Date: Mon, 20 Jan 2020 09:42:59 +0000 Subject: [PATCH] adjust session timeout setings --- tap_mysql/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_mysql/connection.py b/tap_mysql/connection.py index 9e94780..2fe929a 100644 --- a/tap_mysql/connection.py +++ b/tap_mysql/connection.py @@ -33,7 +33,7 @@ def connect_with_backoff(connection): warnings.append(f'Could not set session.time_zone. Error: ({exc.args[0]}) {exc.args[1]}') try: - cur.execute('SET @@session.wait_timeout=2700') + cur.execute('SET @@session.wait_timeout=28800') except pymysql.err.InternalError as exc: warnings.append(f'Could not set session.wait_timeout. Error: ({exc.args[0]}) {exc.args[1]}') @@ -43,7 +43,7 @@ def connect_with_backoff(connection): warnings.append(f'Could not set session.net_read_timeout. Error: ({exc.args[0]}) {exc.args[1]}') try: - cur.execute('SET @@session.innodb_lock_wait_timeout=2700') + cur.execute('SET @@session.innodb_lock_wait_timeout=3600') except pymysql.err.InternalError as exc: warnings.append( f'Could not set session.innodb_lock_wait_timeout. Error: ({exc.args[0]}) {exc.args[1]}'