Commit a59f3f23 by 孙龙

up

parent 9f8efc75
Showing with 4 additions and 4 deletions
......@@ -90,8 +90,8 @@ func (jobMgr *JobMgr) SaveJob(req *http.Request) (oldJob *common.Job, err error)
)
// 赋值给job
job.Name = req.FormValue("job_name")
job.JobEtcdName = req.FormValue("job_etcd_name")
job.Name = req.FormValue("job_etcd_name")
job.JobEtcdName = req.FormValue("job_name")
job.Command = req.FormValue("command")
job.CronExpr = req.FormValue("cron_expr")
nodeIp := req.FormValue("node")
......@@ -100,9 +100,9 @@ func (jobMgr *JobMgr) SaveJob(req *http.Request) (oldJob *common.Job, err error)
job_type, err := strconv.ParseInt(req.FormValue("job_type"), 10, 64)
if job_type == 1 {
jobKey = common.JOB_SAVE_DIR + nodeIp + "/" + job.JobEtcdName // etcd的保存key: 目录 + IP + 任务名称
jobKey = common.JOB_SAVE_DIR + nodeIp + "/" + job.Name // etcd的保存key: 目录 + IP + 任务名称
} else {
jobKey = common.JOB_ONCE_SAVE_DIR + nodeIp + "/" + job.JobEtcdName // etcd的保存key: 目录 + IP + 任务名称
jobKey = common.JOB_ONCE_SAVE_DIR + nodeIp + "/" + job.Name // etcd的保存key: 目录 + IP + 任务名称
}
// 任务信息json
......
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 sign in to comment