Commit 7cda6c09 by tiger

执行次数日志

1 parent 64b060a6
......@@ -118,6 +118,9 @@ public class SopInstNodeExecuteJobHandler {
if (node.getDailyExpire() != null && node.getDailyExpire().before(new Date())) {
node.setNodeStatus(-1);
SopXxlJobUtil.pauseSopNode(sop, node);
SopXxlJobUtil.log(log, "【执行Sop节点】【{}:{}】,节点dailyExpire已到期,停止执行!", sop.getInst().getInstId(), sop.getInst().getInstName());
return;
}
......@@ -164,6 +167,8 @@ public class SopInstNodeExecuteJobHandler {
inst.setInstSnapshot(snapshot);
node.setDailyCount(ObjectUtil.defaultIfNull(node.getDailyCount(), 0) + 1);
SopXxlJobUtil.log(log, "【执行Sop节点】【{}:{}】,节点已执行次数:{}!", sop.getInst().getInstId(), sop.getInst().getInstName(), node.getDailyCount());
// 刷新实例批次快照
SopInstBatch batch = sop.getBatch();
if (batch != null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!