1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 05:51:54 +00:00
This commit is contained in:
Newnius 2020-07-01 11:29:44 +08:00
parent 0434dc2fce
commit e5109db709

View File

@ -48,6 +48,7 @@ func serverAPI(w http.ResponseWriter, r *http.Request) {
job.Tasks[i].ID = job.Name + ":" + job.Tasks[i].Name
job.Tasks[i].Job = job.Name
}
job.CreatedAt = int(time.Now().Unix())
scheduler.Schedule(job)
}
js, err := json.Marshal(msgSubmit)