I'm using Quartz.Net (v 3.0.1) for the first time, with the XML Plugin to schedule the jobs and triggers from a XML file.
I need in particular two features:
- To use the misfire policy, for example
FireOnceNow
for a certain job scheduled with a cron trigger that had a misfire - To load at run time other jobs and trigger (modifying the XML)
Right now I'm stuck with this problem:
I found online various topic (like this one: How to use cron misfire-instruction FireOnceNow with AdoJobStore in Quartz.NET 2.0?) where is explained that <overwrite-existing-data>
needs to be at false to use the misfire instructions.
And effectively with this setting the job is re-fired if there was a misfire.
The problem is that in this way I can't insert other jobs and triggers in the XML file:
[12:43:25] [Error] Could not schedule jobs and triggers from file
~/quartz_jobs.xml: Unable to store Job: 'JobGroup1.TestJob1',
because one already exists with this identification.
I don't want every time to delete from XML all the jobs and trigger to add the new one. (I prefer to have in the XML the trace off all my scheduled jobs and triggers)
I'd like to understand what it has to do the <overwrite-existing-data>
with the misfire policy in each job.