From patchwork Mon Aug 22 05:41:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 3591 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 20F7523F4D for ; Mon, 22 Aug 2011 05:41:17 +0000 (UTC) Received: from mail-gw0-f52.google.com (mail-gw0-f52.google.com [74.125.83.52]) by fiordland.canonical.com (Postfix) with ESMTP id E646FA185E1 for ; Mon, 22 Aug 2011 05:41:16 +0000 (UTC) Received: by gwj15 with SMTP id 15so4085276gwj.11 for ; Sun, 21 Aug 2011 22:41:16 -0700 (PDT) Received: by 10.150.170.13 with SMTP id s13mr1896249ybe.48.1313991676348; Sun, 21 Aug 2011 22:41:16 -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.150.157.17 with SMTP id f17cs183590ybe; Sun, 21 Aug 2011 22:41:16 -0700 (PDT) Received: by 10.227.113.71 with SMTP id z7mr1608606wbp.77.1313991674025; Sun, 21 Aug 2011 22:41:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id fj8si14504461wbb.17.2011.08.21.22.41.13 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Aug 2011 22:41:14 -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 1QvNG5-0006Yv-B5 for ; Mon, 22 Aug 2011 05:41:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 4B0E0E0419 for ; Mon, 22 Aug 2011 05:41:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-scheduler X-Launchpad-Branch: ~linaro-validation/lava-scheduler/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 72 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-scheduler/trunk] Rev 72: continue to update the output of a job while it is CANCELING Message-Id: <20110822054113.4039.20697.launchpad@ackee.canonical.com> Date: Mon, 22 Aug 2011 05:41:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13697"; Instance="initZopeless config overlay" X-Launchpad-Hash: a64dc9771457015ee5bf7098e3175ef5a2b30ed5 ------------------------------------------------------------ revno: 72 committer: Michael-Doyle Hudson branch nick: trunk timestamp: Mon 2011-08-22 17:21:44 +1200 message: continue to update the output of a job while it is CANCELING modified: lava_scheduler_app/views.py --- lp:lava-scheduler https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk You are subscribed to branch lp:lava-scheduler. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription === modified file 'lava_scheduler_app/views.py' --- lava_scheduler_app/views.py 2011-08-22 03:26:03 +0000 +++ lava_scheduler_app/views.py 2011-08-22 05:21:44 +0000 @@ -80,7 +80,7 @@ if skipped: response['X-Skipped-Bytes'] = str(skipped) response['X-Current-Size'] = str(start + len(content)) - if job.status != TestJob.RUNNING: + if job.status not in [TestJob.RUNNING, TestJob.CANCELING]: response['X-Is-Finished'] = '1' return response