예제 #1
0
파일: tasks.go 프로젝트: littleyang/vitess
// MarkTaskSucceeded marks the task as done.
func MarkTaskSucceeded(t *automationpb.Task, output string) {
	t.State = automationpb.TaskState_DONE
	t.Output = output
}
예제 #2
0
파일: tasks.go 프로젝트: littleyang/vitess
// MarkTaskFailed marks the task as failed.
func MarkTaskFailed(t *automationpb.Task, output string, err error) {
	t.State = automationpb.TaskState_DONE
	t.Output = output
	t.Error = err.Error()
}
예제 #3
0
파일: tasks.go 프로젝트: pranjal5215/vitess
// MarkTaskSucceeded marks the task as done.
func MarkTaskSucceeded(t *pb.Task, output string) {
	t.State = pb.TaskState_DONE
	t.Output = output
}