-3

I want to run the job every 3hr 30min(Ex:1:00pm next 4:30pm next 8:00pm next 11.30pm so on...)

  • 1
    https://crontab.guru/ http://www.cronmaker.com/ https://www.freeformatter.com/cron-expression-generator-quartz.html – luk2302 Feb 14 '22 at 09:01

1 Answers1

0

Classic cron expressions cannot express time intervals like "3 hours 30 minutes".

One workaround is to schedule a cron job for every 30 minutes (0,30 * * * *). And, inside your job put additional logic to check if the job should run or abort.

Pēteris Caune
  • 43,578
  • 6
  • 59
  • 81