mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
return jobName when submit job
This commit is contained in:
@@ -67,6 +67,7 @@ func serverAPI(w http.ResponseWriter, r *http.Request) {
|
||||
job.Tasks[i].Job = job.Name
|
||||
}
|
||||
job.CreatedAt = int(time.Now().Unix())
|
||||
msgSubmit.JobName = job.Name
|
||||
scheduler.Schedule(job)
|
||||
}
|
||||
js, err := json.Marshal(msgSubmit)
|
||||
|
||||
@@ -6,8 +6,9 @@ type MsgAgentReport struct {
|
||||
}
|
||||
|
||||
type MsgSubmit struct {
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
JobName string `json:"jobName"`
|
||||
}
|
||||
|
||||
type MsgPoolStatusHistory struct {
|
||||
|
||||
Reference in New Issue
Block a user