Commit fb28ac4b by tiger

node_status

1 parent 7c5ad90b
...@@ -98,12 +98,6 @@ public class SopTplNode { ...@@ -98,12 +98,6 @@ public class SopTplNode {
private Byte nodeAsync; private Byte nodeAsync;
/** /**
* 节点状态:0,停用;1,启用;
*/
@Column(name = "node_status")
private Integer nodeStatus;
/**
* 每日执行次数限制,0表示不限制。 * 每日执行次数限制,0表示不限制。
*/ */
@Column(name = "daily_limit") @Column(name = "daily_limit")
...@@ -369,14 +363,6 @@ public class SopTplNode { ...@@ -369,14 +363,6 @@ public class SopTplNode {
this.nodeAsync = nodeAsync; this.nodeAsync = nodeAsync;
} }
public Integer getNodeStatus() {
return nodeStatus;
}
public void setNodeStatus(Integer nodeStatus) {
this.nodeStatus = nodeStatus;
}
public Integer getDailyLimit() { public Integer getDailyLimit() {
return dailyLimit; return dailyLimit;
} }
......
...@@ -35,15 +35,18 @@ public class SopInstLoadJobHandler { ...@@ -35,15 +35,18 @@ public class SopInstLoadJobHandler {
inst.setInstStatus((byte) -1); inst.setInstStatus((byte) -1);
} }
if (inst.getInstStatus() != 1) { if (inst.getInstStatus() == 1) {
// 启动sop任务
SopXxlJobUtil.initSopJob(inst);
} else {
// 停止实例任务以及所有子任务 // 停止实例任务以及所有子任务
SopStruct sop = sopService.loadSop(inst.getInstId()); SopStruct sop = sopService.loadSop(inst.getInstId());
SopXxlJobUtil.pauseSop(sop); SopXxlJobUtil.pauseSop(sop);
continue;
}
// 启动sop任务 }
SopXxlJobUtil.initSopJob(inst);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!