quartz_jobs.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This file contains job definitions in schema version 2.0 format -->
  3. <job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
  4. <processing-directives>
  5. <overwrite-existing-data>true</overwrite-existing-data>
  6. </processing-directives>
  7. <schedule>
  8. <!--该作业用于定时更新商品库存-->
  9. <job>
  10. <name>UpdateInventoryJob</name>
  11. <group>Update</group>
  12. <description>定时更新商品库存</description>
  13. <job-type>TimeSchedule.testjob1,TimeSchedule</job-type>
  14. <durable>true</durable>
  15. <recover>false</recover>
  16. </job>
  17. <job>
  18. <name>UpdateCustomerJob</name>
  19. <group>Update</group>
  20. <description>定时更新客户</description>
  21. <job-type>TimeSchedule.testjob2,TimeSchedule</job-type>
  22. <durable>true</durable>
  23. <recover>false</recover>
  24. </job>
  25. <trigger>
  26. <cron>
  27. <name>UpdateInventoryTrigger</name>
  28. <group>Update</group>
  29. <job-name>UpdateInventoryJob</job-name>
  30. <job-group>Update</job-group>
  31. <cron-expression>0/5 * * * * ?</cron-expression>
  32. </cron>
  33. </trigger>
  34. <trigger>
  35. <cron>
  36. <name>UpdateCustomerTrigger</name>
  37. <group>Update</group>
  38. <job-name>UpdateCustomerJob</job-name>
  39. <job-group>Update</job-group>
  40. <cron-expression>0/10 * * * * ?</cron-expression>
  41. </cron>
  42. </trigger>
  43. </schedule>
  44. </job-scheduling-data>