Relative Content

Tag Archive for javaspring-bootspring-batch

Spring Batch job runs fine only the first time. Doesn’t work after that

I am triggering a batch job using an API. The first time I trigger using the API after each server restart works fine. Goes through all the break points and saves the data in the DB as intended.However, after that, the log says the job has been started and the step is being executed. But it doesn’t hit any break points and the data is also not saved as expected.My code and config is as follows –

Spring Batch job runs fine only the first time. Doesn’t work after that

I am triggering a batch job using an API. The first time I trigger using the API after each server restart works fine. Goes through all the break points and saves the data in the DB as intended.However, after that, the log says the job has been started and the step is being executed. But it doesn’t hit any break points and the data is also not saved as expected.My code and config is as follows –

Spring Batch job runs fine only the first time. Doesn’t work after that

I am triggering a batch job using an API. The first time I trigger using the API after each server restart works fine. Goes through all the break points and saves the data in the DB as intended.However, after that, the log says the job has been started and the step is being executed. But it doesn’t hit any break points and the data is also not saved as expected.My code and config is as follows –

Spring Batch job runs fine only the first time. Doesn’t work after that

I am triggering a batch job using an API. The first time I trigger using the API after each server restart works fine. Goes through all the break points and saves the data in the DB as intended.However, after that, the log says the job has been started and the step is being executed. But it doesn’t hit any break points and the data is also not saved as expected.My code and config is as follows –

Get the Previous Execution time of @Schedule job in springboot

I’m looking for an option to get the last execution time of @Scheduled task. so that I want to use it for retrieving the database records from the last execution time.
Quartz dependency and store the execution time in database not considering, just with default spring-boot scheduler and Java libraries.