[Xen-devel] [OSSTEST PATCH 14/21] tcl/JobDB-Executive: Do not squash "starved" status

Ian Jackson posted 21 patches 6 years, 9 months ago
[Xen-devel] [OSSTEST PATCH 14/21] tcl/JobDB-Executive: Do not squash "starved" status
Posted by Ian Jackson 6 years, 9 months ago
ts-hosts-allocate is going to set the job status to `starved'
sometimes, and then die.  `starved' needs to be added to the list of
job statuses that sg-run-job leaves alone.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 tcl/JobDB-Executive.tcl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tcl/JobDB-Executive.tcl b/tcl/JobDB-Executive.tcl
index 57ded025..4f3409a9 100644
--- a/tcl/JobDB-Executive.tcl
+++ b/tcl/JobDB-Executive.tcl
@@ -55,6 +55,7 @@ proc job-set-status-unlocked {flight job st} {
 	    UPDATE jobs SET status='$st'
 		WHERE flight=$flight AND job='$job'
 		  AND status<>'aborted' AND status<>'broken'
+                  AND status<>'starved'
     "
 }
 
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel