Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
BATCH_JOB_SEQ never initialize [BATCH-2799] #801
I have set spring.batch.initialize-schema = always;
every time when I start my app, without any Jobs start, batch-mysql.sql last line never run; however, the other batch sequence tables is working properly. This is so weird that the application always run into Exception, but when I manually run the last line, the exception (duplicate job id 0) is away.
INSERT INTO BATCH_JOB_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_JOB_SEQ)