艺海无涯,学无止境。欢迎一起探讨技术和人生,了解我

开源框架Quqrtz.Net 任务不执行的一个问题

下面的配置,其中TestCNRoutePush任务只执行一次,并且执行时间已过

WriteProcessLog任务始终会执行,因为它的配置在TestCNRoutePush的配置之上

LoadSyncSignInLogisticsData任务始终不会执行,因为它的配置在TestCNRoutePush之下

不知道这算不算框架的一个BUG,当前使用的版本是2.3.3.0

<?xml version="1.0" encoding="utf-8" ?>
<job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
<processing-directives>
<overwrite-existing-data>true</overwrite-existing-data>
</processing-directives>
<schedule>
<job>
<name>WriteProcessLog</name>
<group>Jobs</group>
<description>此任务始终会执行</description>
<job-type>PlatformAutoTask.Jobs.WriteProcessLog,PlatformAutoTask</job-type>
<durable>true</durable>
<recover>false</recover>
</job>
<trigger>
<cron>
<name>WriteProcessLogTrigger</name>
<group>Jobs</group>
<job-name>WriteProcessLog</job-name>
<job-group>Jobs</job-group>
<cron-expression>0 0/1 * * * ? *</cron-expression>
</cron>
</trigger> <job>
<name>TestCNRoutePush</name>
<group>Jobs</group>
<description>此任务只会执行一次</description>
<job-type>PlatformAutoTask.Jobs.TestCNRoutePush,PlatformAutoTask</job-type>
<durable>true</durable>
<recover>false</recover>
</job>
<trigger>
<cron>
<name>TestCNRoutePushTrigger</name>
<group>Jobs</group>
<job-name>TestCNRoutePush</job-name>
<job-group>Jobs</job-group>
<cron-expression>0 0 0 1 1 ? 2018</cron-expression>
</cron>
</trigger> <job>
<name>LoadSyncSignInLogisticsData</name>
<group>Jobs</group>
<description>此任务不会执行,因为上一个job配置了只执行一次,并且执行时间已过</description>
<job-type>PlatformAutoTask.Jobs.LoadSyncSignInLogisticsData,PlatformAutoTask</job-type>
<durable>true</durable>
<recover>false</recover>
</job>
<trigger>
<cron>
<name>LoadSyncSignInLogisticsDataTrigger</name>
<group>Jobs</group>
<job-name>LoadSyncSignInLogisticsData</job-name>
<job-group>Jobs</job-group>
<cron-expression>0/1 * * * * ? *</cron-expression>
</cron>
</trigger> </schedule>
</job-scheduling-data>

相关的文章