Message ID | 20120924025710.29712.83221.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_server/settings/debian.py' --- lava_server/settings/debian.py 2012-06-14 04:24:48 +0000 +++ lava_server/settings/debian.py 2012-09-24 02:55:36 +0000 @@ -89,3 +89,10 @@ # Load extensions loader.contribute_to_settings(locals(), debian_settings) + +from django.db.backends.signals import connection_created + +def set_timeout(connection, **kw): + connection.cursor().execute("SET statement_timeout to 30000") + +connection_created.connect(set_timeout)