2022-04-16

My Job does no longer starts when I use spring.batch.job.names

I have a number of jobs configured run at different occasions. There are jobs that are started from a rest endpoint and the main one that should start immediately. Here is the configuration:

    spring:
      config:
          activate:
          on-profile: dev
      batch:
      job:
             enabled: true
             names: startMigrationJob
      jdbc:
             initialize-schema: always
      datasource:
            schema: schema-postgresql.sql
            auto-commit: true

The job does not run anymore and there is no error just the bootRun prompt. I don't know how the job used to run and now with the configuration the job no longer runs. Please help provide why this is the case



No comments:

Post a Comment