pnowojski commented on a change in pull request #17100:
URL: https://github.com/apache/flink/pull/17100#discussion_r701732655
##########
File path: flink-python/pyflink/datastream/checkpoint_config.py
##########
@@ -214,6 +214,35 @@ def set_fail_on_checkpointing_errors(self,
self._j_checkpoint_config.setFailOnCheckpointingErrors(fail_on_checkpointing_errors)
return self
+ def get_tolerable_checkpoint_failure_number(self) -> int:
+ """
+ Get the defined number of consecutive checkpoint failures that will be
tolerated, before the
+ whole job is failed over.
+
+ :return: The maximum number of tolerated checkpoint failures.
+ """
+ return self._j_checkpoint_config.getTolerableCheckpointFailureNumber()
+
+ def set_tolerable_checkpoint_failure_number(self,
+
tolerable_checkpoint_failure_number: int
+ ) -> 'CheckpointConfig':
+ """
+ This defines how many consecutive checkpoint failures will be
tolerated, before the whole
+ job is failed over. The default value is `0`, which means no
checkpoint failures will be
+ tolerated, and the job will fail on first reported checkpoint failure.
+
+ Example:
+ ::
+
+ >>> config.set_tolerable_checkpoint_failure_number(False)
Review comment:
Good catch! A copy paste error. Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]