Re-execution of quartz 5 times a day

I use quartz to schedule my assignments, I need to do the job at 2am every day and repeat 5 times every 10 minutes, any ideas? the result should be: 2:00 2:10 2:20 2:30 2:40

Thanks in advance.

+1


a source to share


4 answers


I would look at Quartz CronTrigger and in particular using / to specify every "n" minutes / hours.

I think you will need



0 0,10,20,30,40 2 * * ?

      

to shoot at 2am and then 2.10am-2.40am every 10 minutes.

+3


a source


Just specify the time of the schedule as a cron string for the CronTrigger like this:



0 0,10,20,30,40 2 * * *

      

+1


a source


Use a CronTrigger with a cron expression that describes the exact time at which you want it to run. For each day at 2:00, 2:10, 2:20, 2:30, 2:40 use:

0 0,10,20,30,40 2 * * ?

      

+1


a source


The simple solution is to just have 5 tasks, one for every 10 minutes.

-1


a source







All Articles