зеркало из https://github.com/github/vitess-gh.git
automation: More detailed error message when a task could not be instantiated.
This commit is contained in:
Родитель
e5a116173a
Коммит
1c66ee2987
|
@ -136,7 +136,8 @@ clusterOpLoop:
|
|||
// Make sure all new tasks do not miss any required parameters.
|
||||
err := s.validateTaskContainers(newTaskContainers)
|
||||
if err != nil {
|
||||
log.Errorf("Task: %v (%v/%v) emitted a new task which is not valid. Error: %v", taskProto.Name, clusterOp.Id, taskProto.Id, err)
|
||||
err = fmt.Errorf("Task: %v (%v/%v) emitted a new task which is not valid. Error: %v", taskProto.Name, clusterOp.Id, taskProto.Id, err)
|
||||
log.Error(err)
|
||||
MarkTaskFailed(taskProto, output, err)
|
||||
clusterOp.Error = err.Error()
|
||||
break clusterOpLoop
|
||||
|
|
Загрузка…
Ссылка в новой задаче