Skip to content

Commit

Permalink
truncate errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 22, 2023
1 parent e340e46 commit 7216f9a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flow/workflows/cdc_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ func (s *CDCFlowState) TruncateProgress() {
if len(s.NormalizeFlowStatuses) > 10 {
s.NormalizeFlowStatuses = s.NormalizeFlowStatuses[len(s.NormalizeFlowStatuses)-10:]
}

if s.SyncFlowErrors != nil {
fmt.Println("SyncFlowErrors: ", s.SyncFlowErrors)
s.SyncFlowErrors = nil
}

if s.NormalizeFlowErrors != nil {
fmt.Println("NormalizeFlowErrors: ", s.NormalizeFlowErrors)
s.NormalizeFlowErrors = nil
}
}

func (s *CDCFlowState) SendWALHeartbeat(ctx workflow.Context, cfg *protos.FlowConnectionConfigs) error {
Expand Down

0 comments on commit 7216f9a

Please sign in to comment.