简体   繁体   English

Quartz.NET cront 触发器设置为 23

[英]Quartz.NET cront Trigger set at 23

I try to use Quart.NET scheduler for some job that are to reproduce every 5 second.我尝试将 Quart.NET 调度程序用于每 5 秒重现一次的工作。
I use a CRON trigger set like: 0/5 0 0? * * *我使用 CRON 触发器集,例如: 0/5 0 0? * * * 0/5 0 0? * * *
The first time, when i start, the trigger was called.第一次,当我开始时,触发器被调用。
Then the NEXT_FIRE_TIME will be set to the 23 of the day and not 5 second after.然后 NEXT_FIRE_TIME 将设置为当天的 23 号,而不是 5 秒后。

The error was the cron expression...错误是 cron 表达式...


The correct cron is:正确的 cron 是:

0/5 * * ? * * *

If you have problem you can check here: https://www.freeformatter.com/cron-expression-generator-quartz.html如果您有问题,可以在这里查看: https://www.freeformatter.com/cron-expression-generator-quartz.html

You should use 1/5 0/1 * 1/1 *? *你应该使用1/5 0/1 * 1/1 *? * 1/5 0/1 * 1/1 *? * It will work. 1/5 0/1 * 1/1 *? *它会工作。 More information on Cronmaker And Wiki Pedia有关CronmakerWiki Pedia的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM