Quartz Scheduler 多久醒来一次?
我正在使用 Quartz Scheduling,更具体地说,是一个 cron 触发器,设置为每周每天晚上 10 点唤醒。
我接触的另一个小组询问调度程序一天中会醒来多少次来检查是否需要运行作业。晚上 10 点作业是唯一配置的作业。我认为它只会在那个时候醒来。
我查看了文档,但没有看到任何内容。如果有人知道文档中提到的地方,我很想知道。
谢谢。
I'm using Quartz Scheduling, more specifically a cron trigger set to wake up at 10PM every day of the week.
Another group I interface with are asking how many times during the day will the scheduler wake up to check if it needs to run jobs. The 10PM job is the only one configured. I assume that it will only wake up at that time.
I looked at the documentation but didn't see anything. If someone knows where its mentionned in the docs I would love to know.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自配置文档:
默认情况下每 30 秒一次,直到找到触发器。一旦找到任何触发器,它就会获取下一个触发器触发的时间,并在此之前停止检查,除非触发器发生更改。
因此,如果您有一个永远不会改变的每日一次触发器,它会每天唤醒一次进行检查。
我们使用 Oracle 来存储作业和触发器,并且由于有几百个触发器,我们的数据库流量可以忽略不计。
From the configuration docs:
It defaults to every 30 seconds until it finds a trigger. Once it finds any triggers, it gets the time of the next trigger to fire and stops checking until then, unless a trigger changes.
So if you've got a single once-a-day trigger that never changes, it wakes up once a day to check.
We use Oracle to store our jobs and triggers and with a few hundred triggers we have negligible database traffic.