Skip to content
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

taskBatchExecutionListener should not be added to the context if @EnableTask has been used. #651

Open
mminella opened this issue Mar 16, 2020 · 0 comments

Comments

@mminella
Copy link
Contributor

Currently, all SCT requires to turn on the task/batch functionality is the dependency on the classpath and there to be an instance of Job in the context. However, this means that if you are not even using @EnableTask, you still get the listener which is incorrect.

@mminella mminella self-assigned this Mar 16, 2020
@sabbyanandan sabbyanandan added this to the 2.3.0.M2 milestone May 7, 2020
@sabbyanandan sabbyanandan removed this from the 2.3.0-M2 milestone Dec 11, 2020
hpoettker added a commit to hpoettker/spring-cloud-task that referenced this issue Jul 4, 2021
If SCT is on the classpath but EnableTask has not been used, the TaskBatchExecutionListener will no longer be registered with the jobs.

Issue spring-cloud#651
cppwfs pushed a commit to cppwfs/spring-cloud-task that referenced this issue Oct 20, 2021
If SCT is on the classpath but EnableTask has not been used, the TaskBatchExecutionListener will no longer be registered with the jobs.

Issue spring-cloud#651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants