Skip to content

Commit

Permalink
fix: terminate infinite loop after long-running transformation is det…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
mihir20 committed Aug 20, 2024
1 parent eacbc0f commit 4fd6bc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions processor/transformer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ func trackLongRunningTransformation(ctx context.Context, stage string, timeout t
log.Errorw("Long running transformation detected",
"stage", stage,
"duration", time.Since(start).String())
return // ensure the loop terminates after logging
}
}
}

0 comments on commit 4fd6bc4

Please sign in to comment.