I am very new to quartz scheduler and it's a little more all-encompassing than I need it to be.
All I want to is to run a task on the 35 with minute of every hour regardless of when the application has been started.
Apparently this can be done with cron jobs. Code I have so far is
StdSchedulerFactory factory = new StdSchedulerFactory();
IScheduler scheduler = await factory.GetScheduler();
await scheduler.Start();
IJobDetail hourlyJob = JobBuilder.Create<Hourly>()
.WithIdentity("hourlyJob", "Jobs")
.Build();
ITrigger hourlyJobTrigger = TriggerBuilder.Create()
.WithIdentity("hourlyJobTrigger", "Jobs")
.StartNow()
.WithCronSchedule("59 0 0 ? * * *")
.Build();
await scheduler.ScheduleJob(hourlyJob, hourlyJobTrigger);
To my understanding this is supposed to make the task run on every 59th second (for the purpose of testing) of the minute. Doesn't seem to be trigerring though.