diff mbox

[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
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Aug. 22, 2011, 5:41 a.m. UTC
------------------------------------------------------------
revno: 72
committer: Michael-Doyle Hudson <michael.hudson@linaro.org>
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
diff mbox

Patch

=== 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