projects
/
services
/
jenkins-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db4123
)
DB connect timeout to 3 seconds
97/169897/1
author
hyokeun
<hyokeun.jeon@samsung.com>
Mon, 12 Feb 2018 05:13:34 +0000
(14:13 +0900)
committer
hyokeun
<hyokeun.jeon@samsung.com>
Mon, 12 Feb 2018 05:13:34 +0000
(14:13 +0900)
Change-Id: I2dd5fb6683533397aea2d75aa2ef8e1509853a7f
common/buildmonitor_db.py
patch
|
blob
|
history
diff --git
a/common/buildmonitor_db.py
b/common/buildmonitor_db.py
index
b03022c
..
0e42a57
100644
(file)
--- a/
common/buildmonitor_db.py
+++ b/
common/buildmonitor_db.py
@@
-99,7
+99,7
@@
def connect_db():
print '%s %s %s' % (db_ip, db_user, db_name)
# MySQL connect & get version
- conn = MySQLdb.connect(db_ip, db_user, db_pass, db_name)
+ conn = MySQLdb.connect(db_ip, db_user, db_pass, db_name
, connect_timeout=3
)
cursor = conn.cursor()
query = "SELECT VERSION()"
version = ''