You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb.Job.Common/quartz_jobs.xml

54 lines
1.5 KiB
XML

3 years ago
<?xml version="1.0" encoding="utf-8" ?>
<job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData">
<processing-directives>
<overwrite-existing-data>true</overwrite-existing-data>
</processing-directives>
<schedule>
<!-- 发送邮件 -->
<job>
<name>SendMailJob</name>
<group>System</group>
<description>发送邮件</description>
<job-type>DSWeb.Job.Common.SendMailJob,DSWeb.Job.Common</job-type>
<durable>true</durable>
<recover>false</recover>
</job>
<trigger>
<simple>
<name>SendMailScheduler</name>
<group>System</group>
<description>发送邮件触发器</description>
<job-name>SendMailJob</job-name>
<job-group>System</job-group>
<repeat-count>-1</repeat-count>
<repeat-interval>10000</repeat-interval>
</simple>
</trigger>
<!-- 清理过期邮件 -->
<job>
<name>ClearMailJob</name>
<group>System</group>
<description>清理过期邮件</description>
<job-type>DSWeb.Job.Common.ClearMailJob,DSWeb.Job.Common</job-type>
<durable>true</durable>
<recover>false</recover>
</job>
<trigger>
<cron>
<name>ClearMailJobScheduler</name>
<group>System</group>
<job-name>ClearMailJob</job-name>
<job-group>System</job-group>
<cron-expression>0 20 0 * * ?</cron-expression>
</cron>
</trigger>
</schedule>
</job-scheduling-data>