Requirement: Create a job that triggers at specific date+time with some specific interval.
I am creating a job and trigger with SimpleSchedular,
I have given trigger start date some specific time (let's say 08/13/2014 00:00:00 HRS) and given interval withIntervalInHours let's say (24 HRS).
Problem: Job triggered on let's say 13:August: 00:00:00 HRS and completed execution on 13:August: 00:05:23, now on next day (i have given interval 24 HRS) my job started its execution on 14:August 00:05:23 HRS instead of starting at 14:August 00:00:00 HRS.
I want to configure my trigger such that it should start from 00:00:00 HRS on each repeat interval.
I am pasting my code snippet for TriggerBuider here
Thanks @hasana i tried it but i may not have to run it daily... so i want to run it on configurable interval lets say some job at 2 days interval some 3 or 1 days interval.
I have used the simple triggers .withIntervalInDays(3) APIs but its updating the next fire time in DB the when its completing the execution.
let's say i have given the start time 00:00:00 on some day now let's assume it is taking 5 minutes to execute the job, so what simpleScheduar does it updates next fire time as 00:05:00 HRS of next trigger date. I want all repetable jobs should start from 00:00:00 HRS