Skip to content

Commit

Permalink
optimize: check worker status instead of exit quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
fatelei committed Dec 1, 2021
1 parent 30d77ea commit 1a4a20e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dm/dm/master/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,10 @@ func (s *Server) waitOperationOk(
}
}
case *pb.StartTaskRequest, *pb.UpdateTaskRequest, *pb.OperateTaskRequest:
fmt.Printf("query response: %+v\n", queryResp.Result)
if expect == pb.Stage_Stopped && !queryResp.Result {
continue
}
if expect == pb.Stage_Stopped && len(queryResp.SubTaskStatus) == 0 {
return true, "", queryResp, nil
}
Expand Down

0 comments on commit 1a4a20e

Please sign in to comment.