Skip to content

Commit

Permalink
handle heartbeat with stopping.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed May 27, 2022
1 parent d670016 commit 182f2a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cdc/scheduler/internal/tp/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ func (a *agent) collectTableStatus() []schedulepb.TableStatus {
func (a *agent) handleMessageHeartbeat() *schedulepb.Message {
tables := a.collectTableStatus()
response := &schedulepb.HeartbeatResponse{
Tables: tables,
// todo (Ling Jin): how to set `IsStopping`
IsStopping: false,
Tables: tables,
IsStopping: a.stopping,
}
return &schedulepb.Message{
Header: a.newMessageHeader(),
Expand Down

0 comments on commit 182f2a9

Please sign in to comment.