Skip to content

Commit

Permalink
Polish .with_exception_handling docstring (apache#32739)
Browse files Browse the repository at this point in the history
* replace 'record' with 'input' and fix example

* more tweaking
  • Loading branch information
hjtran authored and reeba212 committed Dec 4, 2024
1 parent 7d8ec0a commit 1235bba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdks/python/apache_beam/transforms/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,8 +1593,10 @@ def with_exception_handling(
threshold=1,
threshold_windowing=None,
timeout=None,
error_handler=None):
"""Automatically provides a dead letter output for skipping bad records.
error_handler=None,
on_failure_callback: typing.Optional[typing.Callable[
[Exception, typing.Any], None]] = None):
"""Automatically provides a dead letter output for saving bad inputs.
This can allow a pipeline to continue successfully rather than fail or
continuously throw errors on retry when bad elements are encountered.
Expand Down

0 comments on commit 1235bba

Please sign in to comment.