Skip to content

Restart Remote Partitionning #4831

Closed Answered by fmbenhassine
Nhoutain asked this question in Q&A
Discussion options

You must be logged in to vote

This is not supported natively. You need to update the status of that particular job in the database manually before restarting it.

The reason for not having such a feature natively is the fact that Spring Batch cannot, by just looking at the status of the job in the database, distinguish a job that is effectively running from one that failed abruptly. There is a note about this case in the docs here. I also covered this topic here.

I think one clean way to address this with Kubernetes is to develop a custom job controller that updates the database accordingly when a pod fails. A fresh pod will then restart the job from where it left off without any issue. This feature would be awesome as…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by fmbenhassine
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fmbenhassine
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants