From patchwork Mon Sep 24 02:57:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 11647 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 967A923EFF for ; Mon, 24 Sep 2012 02:57:14 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1B7F7A18979 for ; Mon, 24 Sep 2012 02:57:14 +0000 (UTC) Received: by ieje10 with SMTP id e10so8930019iej.11 for ; Sun, 23 Sep 2012 19:57:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=Uua8iayuXYjte07EJF49hCEfzvJOtBbEReFbJhAcOHw=; b=pAtgWP4CEDtsJkCWIYkXD6kcqj0VNoMTFiF8lTMJd4HbzS1RkraHxpLxYKWNMUehg8 X1BOnrFJA/Dj5/DDevIdqTx+Cip9rBj+UKvONTxCVJqK48SqWNBzjzZFaStEFMDBMLAw 6/o7AhvCJTBjGDiYKnN+fdfQG8ZyenlSf8Oqw2ivEPDZd+yORk/+f0oSolrEKoapwgSV mq87tVaoF35PVXI9wyJhyc8OpgczWywn0ApUGpxGLeBIpbCWmfcuE50rt7NJWjI2T1lZ 0+VbfWC3qSnoAN9FkByLS9LEAkuSRh3ilVo3D0oDvwnzspu3LUaNe2yqFHXgEIcYgBGy CrVQ== Received: by 10.42.84.69 with SMTP id k5mr8691253icl.5.1348455433470; Sun, 23 Sep 2012 19:57:13 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp224221igc; Sun, 23 Sep 2012 19:57:12 -0700 (PDT) Received: by 10.180.79.69 with SMTP id h5mr11160890wix.6.1348455431610; Sun, 23 Sep 2012 19:57:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id u5si1569693wia.46.2012.09.23.19.57.10 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 19:57:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TFyr8-0002w5-CM for ; Mon, 24 Sep 2012 02:57:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 4E431E16FC for ; Mon, 24 Sep 2012 02:57:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-server X-Launchpad-Branch: ~linaro-validation/lava-server/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 399 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 399: set the statement timeout to 30s on connection creation Message-Id: <20120924025710.29712.83221.launchpad@ackee.canonical.com> Date: Mon, 24 Sep 2012 02:57:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15985"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 1a8e8b041594c3b0a527d3911b32b012c25f8736 X-Gm-Message-State: ALoCoQmpawcVOdEVFAV0xjW4/J78u8fvvNwZYqXgTVR5Ce81gzJ9z0ys0gp59m+iYzAJ5CoiXe+i ------------------------------------------------------------ revno: 399 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Mon 2012-09-24 14:55:36 +1200 message: set the statement timeout to 30s on connection creation modified: lava_server/settings/debian.py --- lp:lava-server https://code.launchpad.net/~linaro-validation/lava-server/trunk You are subscribed to branch lp:lava-server. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription === 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)