I've a .net windows service that creates and schedules quartz jobs which is scheduled to run every 4 hours SUN-SAT starting at 4 AM the day the windows service is started. Unfortunately, the moment I start my windows service jobs are getting triggered much ahead of the schedule and is repeating the jobs for more than couple of times and later it is working only as per the schedule. How can I prevent the jobs run immediately after starting my windows service and only run at scheduled time. I'm using crons scheduler. I'm using Oracle DB to maintain my job schedules.
ITrigger objESLJobTrigger = TriggerBuilder.Create()
.WithIdentity("Trigger-" + Key.ToString(), xxx.ToString())
.StartAt(DateTimeOffset.Parse(DateTime.Today.AddHours(4).ToString()).LocalDateTime)
.WithCronSchedule("0 0 0/4 ? * SUN-SAT", x => x.WithMisfireHandlingInstructionIgnoreMisfires())
.Build();