0

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

  • spring.batch.jdbc.initialize-schema=never

enter image description here

enter image description here enter image description here

Can I edit this source?

이상빈
  • 11
  • 2

1 Answers1

0

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.

Henning
  • 3,055
  • 6
  • 30