Skip to content

Commit

Permalink
update max batch size on signal (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Dec 27, 2023
1 parent a3b2800 commit f3d1d8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/workflows/cdc_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ func CDCFlowWorkflowWithConfig(
c.Receive(ctx, &batchSize)
w.logger.Info("received batch size signal: ", batchSize)
syncFlowOptions.BatchSize = batchSize
cfg.MaxBatchSize = uint32(batchSize)
limits.MaxBatchSize = int(batchSize)
})

batchSizeSelector.AddDefault(func() {
w.logger.Info("no batch size signal received, batch size remains: ",
syncFlowOptions.BatchSize)
Expand Down

0 comments on commit f3d1d8e

Please sign in to comment.