This is probably a simple question, but I am pretty new to using Quartz.NET, but how do you change the name of a job or trigger before scheduling? I am basically making a template job in a support class, and then using it in my main program that handles the scheduling.
Since I need unique names for each job/trigger, I was basically going to take the template job’s name like “SomeJob” to “SomeJob01” when I copy it in to the main program for scheduling.
This appears like it would be simple, but all I find when i search is people saying that you can’t change job details after they have been scheduled, where this one is I am changing the name so that I CAN schedule them.
In Quartz, a job is separate from its scheduling trigger. You can add the same job with multiple triggers.
I’m not entirely sure I understand what you are doing with the job, but to add it to Quartz, you can do:
In this manner you can either add a new job with a unique name and assign a new trigger to it, or you could assign a new trigger to an existing job.
But generally speaking, to modify something in Quartz, you have to remove it, change your object, and then re-add it.
Here is an overview of jobs/triggers:
http://quartznet.sourceforge.net/tutorial/lesson_2.html
Here is more information on how triggers work:
http://quartznet.sourceforge.net/tutorial/lesson_4.html
Here is more information on how jobs work:
http://quartznet.sourceforge.net/tutorial/lesson_3.html