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