spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

dataflow-rest-client : Auto create "TASK*" tables when connect database

Open getChan opened this issue 3 years ago • 4 comments
trafficstars

sorry about not good english

Problem description

when add dataflow-rest-client dependency and connect database image

then some tables are created image

maybe these tables are from spring-cloud-task-core dependency image

defined at https://github.com/spring-cloud/spring-cloud-task/blob/main/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/schema-mysql.sql

I think rest-client shouldn't handle db tables.. thanks

getChan avatar Jun 07 '22 07:06 getChan

We will look into fixing this, thanks for the report. In the meantime can you set the property spring.cloud.task.initialize-enabled=false

markpollack avatar Jul 20 '22 16:07 markpollack

Did a little digging here: The issue is that SimpleTaskAutoconfiguration is included in the Spring-Cloud-Task-Core module and it fires automatically unless it is excluded for example: @SpringBootApplication(exclude = SimpleTaskAutoConfiguration.class) or set spring.cloud.task.initialize-enabled=false.
I did try to exclude it in the DataFlowClientAutoConfiguration but that has side effects because we'd have to change the configuration to autoconfiguration.

cppwfs avatar Nov 14 '22 16:11 cppwfs

@markpollack Is spring.cloud.task.autconfiguration: false equally valid? I mean does DataFlowClientAutoConfiguration depend on Cloud Task autoconfiguration in any way or can it work standalone?. If not, I think it should

nightswimmings avatar Oct 02 '23 15:10 nightswimmings

I believe it can be excluded. But need to verify .

cppwfs avatar Oct 02 '23 15:10 cppwfs