I am wondering if it is possible to use weekly trigger to fire once and then go to a weekly schedule
Trigger trigger = TriggerUtils.MakeWeeklyTrigger(
"TriggerName",
dayOfweek,
timeOfDay.Hours,
timeOfDay.Minutes);
So I basically want when my service first starts my trigger to fire and run it’s job. After that I want it to work on a weekly basis based on user settings(So maybe after first run a user set it to Monday 5:00am).
You can have multiple triggers associated with one job. One would fire immediately and only once and the other will fire weekly:
Or you can schedule immediate trigger and when it fires reschedule to weekly:
Another option is to just run your code on start up without involving Quartz. Just use ThreadPool. And then let Quartz handle weekly schedule only. This is possible if your code does not depend on Quartz which might be a good idea in general.