提交 20c43e51 编写于 作者: V vjuranek

Merge pull request #158 from vjuranek/flyweight_check

Jenkins should check also node properties before assigning a flyweight task
......@@ -966,6 +966,7 @@ public class Queue extends ResourceController implements Saveable {
Computer c = n.toComputer();
if (c==null || c.isOffline()) continue;
if (lbl!=null && !lbl.contains(n)) continue;
if (n.canTake(p) != null) continue;
c.startFlyWeightTask(new WorkUnitContext(p).createWorkUnit(p.task));
pendings.add(p);
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册