이상빈
이상빈

Reputation: 56

An error occurred when running the spring cloud task batch app

An error occurred when running the spring cloud task batch app

ERROR : Statement.execute(CREATE TABLE TASK_EXECUTION (...) FAILED! org.postgresql.util.PSQLException: exceptioin: "task_execution" A relation of names already exists

Is there a way to disable the table creation script?

enter image description here

It would be nice to diverge whether to run ddl script (create table...) with the value in the local setting in that function...

ex. setting in spring batch app

enter image description here

enter image description here enter image description here

Can I edit this source?

Upvotes: 1

Views: 247

Answers (1)

Henning
Henning

Reputation: 3899

You can disable the database initialization of Spring Cloud Task by setting the property:

spring.cloud.task.initialize-enabled=false

It works similarly to spring.batch.jdbc.initialize-schema.

You can find more information on this in the reference documentation.

Upvotes: 2

Related Questions