Note that there are some explanatory texts on larger screens.

plurals
  1. POCan quartz.net reconfigure jobs when config file changes?
    primarykey
    data
    text
    <p>Im doing a proof of concept with Quartz.Net A fairly simple scheduling task, the only requirement i have is that a restart of the service it not needed to reconfigure quartz</p> <p>This is test code</p> <pre><code> var factory = new StdSchedulerFactory(); var scheduler = factory.GetScheduler(); scheduler.Start(); </code></pre> <p>Relevant data in app.config</p> <pre><code> &lt;quartz&gt; &lt;add key="quartz.scheduler.instanceName" value="QuartzScheduler" /&gt; &lt;!-- Configure Thread Pool --&gt; &lt;add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" /&gt; &lt;add key="quartz.threadPool.threadCount" value="10" /&gt; &lt;add key="quartz.threadPool.threadPriority" value="Normal" /&gt; &lt;!-- Configure Job Store --&gt; &lt;add key="quartz.jobStore.type" value="Quartz.Simpl.RAMJobStore, Quartz" /&gt; &lt;add key="quartz.plugin.xml.type" value="Quartz.Plugin.Xml.JobInitializationPlugin, Quartz" /&gt; &lt;add key="quartz.plugin.xml.fileNames" value="quartz.config" /&gt; </code></pre> <p></p> <p>My job config file</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;quartz xmlns="http://quartznet.sourceforge.net/JobSchedulingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" overwrite-existing-jobs="true"&gt; &lt;job&gt; &lt;job-detail&gt; &lt;name&gt;jobName1&lt;/name&gt; &lt;group&gt;jobGroup1&lt;/group&gt; &lt;description&gt;jobDesciption1&lt;/description&gt; &lt;job-type&gt;Jobs.MyJob, Jobs&lt;/job-type&gt; &lt;volatile&gt;false&lt;/volatile&gt; &lt;durable&gt;true&lt;/durable&gt; &lt;recover&gt;false&lt;/recover&gt; &lt;/job-detail&gt; &lt;trigger&gt; &lt;cron&gt; &lt;name&gt;cronName1&lt;/name&gt; &lt;group&gt;cronGroup1&lt;/group&gt; &lt;description&gt;CronTriggerDescription&lt;/description&gt; &lt;job-name&gt;jobName1&lt;/job-name&gt; &lt;job-group&gt;jobGroup1&lt;/job-group&gt; &lt;cron-expression&gt;0 0/1 * * * ?&lt;/cron-expression&gt; &lt;/cron&gt; &lt;/trigger&gt; &lt;/job&gt; &lt;/quartz&gt; </code></pre> <p>The cron expression works and teh job is executed each minute, but if i change the expression to 0 0/5 * * * ? while running the service it still fires each minute. So is there a way to config Quartz.net so that it listens to file changes to the config file?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload