未验证 提交 8fc6eaea 编写于 作者: S Suo Lu 提交者: GitHub

[hotfix][docs][checkpointing] Fix and sync example code

上级 441fc5dd
......@@ -106,7 +106,7 @@ env.getCheckpointConfig().setMaxConcurrentCheckpoints(1);
env.getCheckpointConfig().enableExternalizedCheckpoints(ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);
// enables the experimental unaligned checkpoints
env.getCheckpointConfig.enableUnalignedCheckpoints();
env.getCheckpointConfig().enableUnalignedCheckpoints();
{% endhighlight %}
</div>
<div data-lang="scala" markdown="1">
......
......@@ -95,6 +95,8 @@ env.getCheckpointConfig().setMaxConcurrentCheckpoints(1);
// 开启在 job 中止后仍然保留的 externalized checkpoints
env.getCheckpointConfig().enableExternalizedCheckpoints(ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);
// 开启实验性的 unaligned checkpoints
env.getCheckpointConfig().enableUnalignedCheckpoints();
{% endhighlight %}
</div>
<div data-lang="scala" markdown="1">
......@@ -120,6 +122,9 @@ env.getCheckpointConfig.setFailTasksOnCheckpointingErrors(false)
// 同一时间只允许一个 checkpoint 进行
env.getCheckpointConfig.setMaxConcurrentCheckpoints(1)
// 开启实验性的 unaligned checkpoints
env.getCheckpointConfig.enableUnalignedCheckpoints()
{% endhighlight %}
</div>
<div data-lang="python" markdown="1">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册