Skip to content

Commit

Permalink
NumberOfSyncs pause not triggered on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Dec 24, 2024
1 parent 85dbc04 commit 467fd28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flow/workflows/cdc_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,12 @@ func CDCFlowWorkflow(
_ = workflow.Sleep(ctx, 30*time.Second)
} else {
logger.Info("sync finished")
if state.SyncFlowOptions.NumberOfSyncs > 0 {
state.ActiveSignal = model.PauseSignal
}
}
syncFlowFuture = nil
finished = true
if state.SyncFlowOptions.NumberOfSyncs > 0 {
state.ActiveSignal = model.PauseSignal
}
})

flowSignalChan.AddToSelector(mainLoopSelector, func(val model.CDCFlowSignal, _ bool) {
Expand Down

0 comments on commit 467fd28

Please sign in to comment.