提交 5c3ef69a 编写于 作者: K kbertelson

[FIXED HUDSON-6180] Queue.FlyWeightTask objects now respect labels assigned to...

[FIXED HUDSON-6180] Queue.FlyWeightTask objects now respect labels assigned to them when scheduling.  Enables Matrix Tie Parent Plugin.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31360 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4f84dd15
......@@ -926,10 +926,12 @@ public class Queue extends ResourceController implements Saveable {
hash.add(h, h.getNumExecutors()*100);
for (Node n : h.getNodes())
hash.add(n,n.getNumExecutors()*100);
Label lbl = p.task.getAssignedLabel();
for (Node n : hash.list(p.task.getFullDisplayName())) {
Computer c = n.toComputer();
if (c==null || c.isOffline()) continue;
if (lbl!=null && !lbl.contains(n)) continue;
c.startFlyWeightTask(p);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册