Spring Batch重新启动恢复旧执行ID,但处理所有记录,而不仅仅是未经处理的记录

发布于 2025-02-01 05:39:54 字数 131 浏览 2 评论 0原文

我目前正在使用ListItemReader并尝试重新启动我的春季批次。但是,步骤执行上下文读取计数和写入计数设置为0。在数据库中,我可以看到读,写入和提交计数以正确设置失败的上一个作业运行。但是,在重新启动所有内容时,将所有内容设置为0。请帮助我。

I am currently using ListItemReader and trying to restart my spring batch. However, the step execution context read count and write count is set to 0. In the database i can see the read, write and commit count to be correctly set for the previous job run that failed. However, on restarting everything is being set to 0. Please help me regarding this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看春风乍起 2025-02-08 05:39:54

ListItemReader不是 itemsTream。它不会在执行上下文中保存任何重新启动数据。这就是为什么它将始终从每个执行中的内存列表中重新阅读项目。

ListItemReader is not an ItemStream. It does not save any restart data in the execution context. That's why it will always re-read items from the in-memory list on each execution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文