mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
bugfix
This commit is contained in:
@@ -114,9 +114,8 @@ func (jm *JobManager) logs(taskName string) MsgLog {
|
|||||||
spider.Method = "GET"
|
spider.Method = "GET"
|
||||||
spider.URL = "http://" + jm.jobStatus.tasks[taskName].Node + ":8000/logs?id=" + jm.jobStatus.tasks[taskName].Id
|
spider.URL = "http://" + jm.jobStatus.tasks[taskName].Node + ":8000/logs?id=" + jm.jobStatus.tasks[taskName].Id
|
||||||
|
|
||||||
task, ok := jm.jobStatus.tasks[taskName]
|
if _, ok := jm.jobStatus.tasks[taskName]; !ok {
|
||||||
if !ok {
|
return MsgLog{Code: -1, Error: "Task not exist"}
|
||||||
log.Warn(taskName, task)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
err := spider.do()
|
err := spider.do()
|
||||||
|
|||||||
Reference in New Issue
Block a user