gpt4 book ai didi

quartz-scheduler - Quartz Scheduler 多久唤醒一次?

转载 作者:行者123 更新时间:2023-12-04 08:30:15 24 4
gpt4 key购买 nike

我正在使用 Quartz 调度,更具体地说是一个设置为每周每天晚上 10 点醒来的 cron 触发器。

我接触的另一个小组正在询问调度程序在一天中将唤醒多少次以检查它是否需要运行作业。晚上 10 点作业是唯一配置的作业。我假设它只会在那个时候醒来。

我查看了文档,但没有看到任何内容。如果有人知道它在文档中提到的位置,我很想知道。

谢谢。

最佳答案

configuration docs :

org.quartz.scheduler.idleWaitTime

Is the amount of time in milliseconds that the scheduler will wait before re-queries for available triggers when the scheduler is otherwise idle. Normally you should not have to 'tune' this parameter, unless you're using XA transactions, and are having problems with delayed firings of triggers that should fire immediately.


它默认为每 30 秒一次,直到找到触发器。一旦找到任何触发器,它就会获取下一个触发器触发的时间并在此之前停止检查,除非触发器发生更改。
因此,如果您有一个永远不会改变的每天一次的触发器,它会每天唤醒一次以进行检查。
我们使用 Oracle 来存储我们的作业和触发器,并且通过几百个触发器,我们的数据库流量可以忽略不计。

关于quartz-scheduler - Quartz Scheduler 多久唤醒一次?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1742674/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com