-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Documentation unclear on how to replace deprecated AbstractTaskletStepBuilder#throttleLimit #4389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for opening this issue. I must admit this is confusing, that's why we are planning to review the concurrency model completely (see #3950). The issue is that even if one provides a pooled task executor as stated by the javadoc, the The correct way to replace that deprecation is actually to go one level up (ie above the |
Hey @fmbenhassine, I was trying to do the suggested approach but it seems that the TaskExecutorRepeatTemplate.setThrottleLimit is also deprecated. Is there any other way to do it? Thanks! |
@glyiu98 The suggested replacement is to provide a custom |
Hi @fmbenhassine |
Hello,
I have question about the
AbstractTaskletStepBuilder#throttleLimit
. JavaDoc says that:But it's IMHO not obvious how this should be replaced and even official documentation still uses this method (https://docs.spring.io/spring-batch/docs/current/reference/html/scalability.html)
This is the snippet of the code we're using right now
But it seems when we remove the
.throttleLimit
it only runs in 4 threads, which seems to be the default value defined inAbstractTaskletStepBuilder
byCan you please clarify how to set up the task executor so it works in the same way as when using the
throttleLimit
method?The text was updated successfully, but these errors were encountered: