fix(workflow): 补 reExecute 后再次 Insert 分支的 LastHeartbeat,消除 30s 僵尸双跑窗口
This commit is contained in:
@@ -390,6 +390,7 @@ func execute(ctx context.Context, conn *wsCommon.WsConnection, execId int64, sta
|
||||
NodeGroupId: nodeGroupId,
|
||||
Status: flow.FlowExecutionStatusRunning.Code(),
|
||||
RequestParams: req.FlowContent,
|
||||
LastHeartbeat: time.Now().UnixMilli(),
|
||||
})
|
||||
if err != nil || g.IsEmpty(execId) {
|
||||
glog.Errorf(ctx, "工作流执行记录创建失败: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user