I am working on a Spring batch application where I have used RetryTemplate
with SimpleRetryPolicy
.
In this application, ItemProcessor
usually takes 30-35 mins to complete a particular task. But sometimes, it takes from than 2hrs to complete that same task.
Is there a way to retry my ItemProcessor
, if the assigned task is not completed within given time period?
I am looking for some Java/Spring in-build functionality instead of writing my own timeout logic.