Commit d80a9570 authored by 陈子龙's avatar 陈子龙

执行ansible命令日志存储缓存

parent 68d886bd
......@@ -456,7 +456,7 @@ func ExecAnsible(id, taskId int, value string) {
conf.Logger.Error("Modify Execution Status", zap.Error(err))
//return
}
redis.HDel(conf.AutoExecHistory, strconv.Itoa(id))
//redis.HDel(conf.AutoExecHistory, strconv.Itoa(id))
} else {
//任务执行失败
err = UpdateExecHistory(request.UpdateExecHistory{
......@@ -468,6 +468,6 @@ func ExecAnsible(id, taskId int, value string) {
conf.Logger.Error("Modify Execution Status err", zap.Error(err))
//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