Skip to content

Commit

Permalink
think activity context needs heartbeat to find out workflow was cance…
Browse files Browse the repository at this point in the history
…lled
  • Loading branch information
serprex committed Jan 4, 2024
1 parent 51760c9 commit 9ea421f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ func (p *PostgresCDCSource) consumeStream(
var ctx context.Context
var cancel context.CancelFunc

activity.RecordHeartbeat(p.ctx, "consuming stream")
if cdcRecordsStorage.IsEmpty() {
ctx, cancel = context.WithCancel(p.ctx)
} else {
Expand Down

0 comments on commit 9ea421f

Please sign in to comment.