Search code examples
spring-bootspring-batchquartz-schedulerspring-cloud-taskkubernetes-cronjob

How to Migrate Spring Batch Cron Jobs To Spring Cloud Task


I used quartz api for existing cron jobs but how should I configure these cron jobs with spring cloud task. We can dynamically get the cron expression definitions for each job from the DB for schedule the job, but how I need to configure it with spring cloud task for each job.

I haven't seen a document about configuring more than one cron jobs for spring cloud task.


Solution

  • Spring Cloud Task isn't a replacement for Quartz or any scheduler API so that migration isn't functionally the same. You would still use Quartz with Spring Cloud Task to handle the orchestration (when to run the workload) just as you would with Spring Batch.