Skip to content

Commit

Permalink
add read_timeout to configuration_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
lab79 authored Jan 16, 2017
1 parent 1a06a5c commit 34f7b2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redash/query_runner/vertica.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def configuration_schema(cls):
"port": {
"type": "number"
},
"read_timeout": {
"type": "number"

This comment has been minimized.

Copy link
@arikfr

arikfr Jan 16, 2017

Member

Please add a friendly title ('title': 'Read Timeout').

},
},
'required': ['database'],
'secret': ['password']
Expand Down Expand Up @@ -110,7 +113,7 @@ def run_query(self, query, user):
'user': self.configuration.get('user', ''),
'password': self.configuration.get('password', ''),
'database': self.configuration.get('database', ''),
'read_timeout': self.configuration.get('read_timeout', 60000)
'read_timeout': self.configuration.get('read_timeout', 600)
}
connection = vertica_python.connect(**conn_info)
cursor = connection.cursor()
Expand Down

0 comments on commit 34f7b2f

Please sign in to comment.