spring-cloud-task
spring-cloud-task copied to clipboard
taskBatchExecutionListener should not be added to the context if `@EnableTask` has been used.
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.