如果作业在运行时自行排队,Quartz 会删除该作业

发布于 2024-10-09 17:32:54 字数 294 浏览 6 评论 0原文

我在使用 Quartz 时遇到以下问题:

计划每 10 分钟运行一次作业。有时(很少)该工作可能需要超过 10 分钟。在这种情况下,Quartz 会将相同的作业放入队列中,以便在当前作业(相同的作业)执行之后运行。正常情况下这是没有问题的;该作业将连续运行两次,一切正常且正常运行。但在某些情况下,第二次作业也会花费10分钟以上。我希望 Quartz 会再次将其放入队列中。相反,该作业永远不会排队并且不会再次运行。除了这个作业之外,其他一切正常,直到系统重新启动后才再次运行。

这是预期的行为吗?有什么方法可以修改它以更好地满足我的需求吗?

I have the following problem with Quartz:

A job is scheduled to run every 10 minutes. Sometimes (rarely) the job might take longer than 10 minutes. In such cases, Quartz will put the same job on the queue to run after the current one (same job) is executing. Normally that is no problem; the job will run two times in a row and all is well and functioning. However, in some cases, the second time the job will also take more than 10 minutes. I would expect that Quartz will just put it in the queue one more time. Instead this job never gets queued and is not run again. Everything else is normal besides this job, which never runs again until the system is restarted.

Is this the expected behavior? Is there any way that I can modify it to better suit my needs?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许你一世情深 2024-10-16 17:32:54

存在运行更多作业且 QUARTZ 线程池已满的问题。

There was an issue with more jobs running and the QUARTZ thread pool being maxed out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文