damat-perdigannat
damat-perdigannat

Reputation: 5950

Run quartz every n>60 minutes

How do I run quartz every n minutes, where n is greater than 60? Let's say I want to run quartz every 100 minutes, how do I do it?

As observed, 0 0/100 * * * ? *, also runs on the 60th minute.

Upvotes: 1

Views: 721

Answers (1)

Jan Moravec
Jan Moravec

Reputation: 1880

This is where the DailyTimeIntervalTrigger (Quartz 2.x), or DateIntervalTrigger (Quartz 1.8.x) are typically used.

I am attaching a screenshot from our QuartzDesk app that depicts a sample DailyTimeIntervalTrigger configuration for your scenario (i.e. job triggered every 100 minutes - in addition to that the example trigger configuration limits the job execution on work days and time between 8am and 6pm).

Sample DailyTimeIntervalTrigger Configuration In Quartzdesk

Upvotes: 1

Related Questions