michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
249 stars 203 forks source link

schedule a job every 100 millisecond but actually running every 30 sec #134

Closed hemau23 closed 7 years ago

hemau23 commented 7 years ago

I tried to create a trigger which should run every 100 mili sec but in actual teh job is geting triggered after every 30 sec or more.


newTrigger()
                .forJob(jobDetail)
                .withIdentity(jobDetail.getKey().getName() + TRIGGER, jobDetail.getKey().getName() + GROUP)
                .withSchedule(SimpleScheduleBuilder
                                      .simpleSchedule()
                                      .withIntervalInMilliseconds(100)
                                      .repeatForever())            
                .build();

am I doing something wrong in above code.  ?
michaelklishin commented 7 years ago

Scheduling is not performed by Quartz store. You use repeatSecondlyForever combined with an interval. Aren't those things conflicting? Anyhow, it's a question for the Quartz mailing list.

hemau23 commented 7 years ago

sorry I was working on that and newTrigger() .forJob(jobDetail) .withIdentity(jobDetail.getKey().getName() + TRIGGER, jobDetail.getKey().getName() + GROUP) .withSchedule(SimpleScheduleBuilder .simpleSchedule() .withIntervalInMilliseconds(100) .repeatForever())
.build();

this is what my actual code