Commit 7a120f6b authored by 陈子龙's avatar 陈子龙

Merge branch 'dev-czl' into dev

parents 0d30effd d80a9570
...@@ -456,7 +456,7 @@ func ExecAnsible(id, taskId int, value string) { ...@@ -456,7 +456,7 @@ func ExecAnsible(id, taskId int, value string) {
conf.Logger.Error("Modify Execution Status", zap.Error(err)) conf.Logger.Error("Modify Execution Status", zap.Error(err))
//return //return
} }
redis.HDel(conf.AutoExecHistory, strconv.Itoa(id)) //redis.HDel(conf.AutoExecHistory, strconv.Itoa(id))
} else { } else {
//任务执行失败 //任务执行失败
err = UpdateExecHistory(request.UpdateExecHistory{ err = UpdateExecHistory(request.UpdateExecHistory{
...@@ -468,6 +468,6 @@ func ExecAnsible(id, taskId int, value string) { ...@@ -468,6 +468,6 @@ func ExecAnsible(id, taskId int, value string) {
conf.Logger.Error("Modify Execution Status err", zap.Error(err)) conf.Logger.Error("Modify Execution Status err", zap.Error(err))
//return //return
} }
redis.HDel(conf.AutoExecHistory, strconv.Itoa(id)) //redis.HDel(conf.AutoExecHistory, strconv.Itoa(id))
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment