Commit 0d30effd authored by 陈子龙's avatar 陈子龙

Merge branch 'dev-czl' into dev

parents a9ef0990 68d886bd
......@@ -136,16 +136,16 @@ func (t *TaskHistorySvc) TaskExecLog(id int) (taskExecLogRes response.TaskExecLo
}
if taskExecLogRes.State == 0 {
redis, err := client.GetRedisClient()
if err != nil {
conf.Logger.Error("redis err", zap.Error(err))
err = resp.RedisConnectError.ErrorDetail(err)
redis, err1 := client.GetRedisClient()
if err1 != nil {
conf.Logger.Error("redis err", zap.Error(err1))
err = resp.RedisConnectError.ErrorDetail(err1)
return
}
value, err := redis.HGet(conf.AutoExecHistory, cast.ToString(id))
if err != nil {
conf.Logger.Error("redis HGet err", zap.Error(err))
err = resp.RedisExecError.ErrorDetail(err)
value, err2 := redis.HGet(conf.AutoExecHistory, cast.ToString(id))
if err2 != nil {
conf.Logger.Error("redis HGet err", zap.Error(err2))
err = resp.RedisExecError.ErrorDetail(err2)
return
}
var execCache ExecCache
......
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