12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- This file contains job definitions in schema version 2.0 format -->
- <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>UpdateInventoryJob</name>
- <group>Update</group>
- <description>定时更新商品库存</description>
- <job-type>TimeSchedule.testjob1,TimeSchedule</job-type>
- <durable>true</durable>
- <recover>false</recover>
- </job>
- <job>
- <name>UpdateCustomerJob</name>
- <group>Update</group>
- <description>定时更新客户</description>
- <job-type>TimeSchedule.testjob2,TimeSchedule</job-type>
- <durable>true</durable>
- <recover>false</recover>
- </job>
- <trigger>
- <cron>
- <name>UpdateInventoryTrigger</name>
- <group>Update</group>
- <job-name>UpdateInventoryJob</job-name>
- <job-group>Update</job-group>
- <cron-expression>0/5 * * * * ?</cron-expression>
- </cron>
- </trigger>
- <trigger>
- <cron>
- <name>UpdateCustomerTrigger</name>
- <group>Update</group>
- <job-name>UpdateCustomerJob</job-name>
- <job-group>Update</job-group>
- <cron-expression>0/10 * * * * ?</cron-expression>
- </cron>
- </trigger>
- </schedule>
- </job-scheduling-data>
|