Quartz.NET - 长时间运行的作业?
我在 Windows 窗体应用程序中使用 Quartz.NET,并且有一项长时间运行(5-6 小时)的作业,需要通宵运行。
不过,我现在遇到一个问题,Quartz 调度程序似乎“超时”,因为在执行作业后,计划的作业不会运行,并且在关闭并重新打开应用程序之前我无法与 Quartz 交互。
我知道一个选择是将工作分成多个部分,但这并不是很理想。有什么想法吗?
I'm using Quartz.NET in a Windows Forms application I have, and I have a long running (5-6 hours) job that runs overnight.
I have an issue now though, where the Quartz scheduler seems to 'timeout', because after the job is executed, scheduled jobs do not run and I cannot interact with Quartz in anyway until I close and reopen my application.
I know an option is splitting the job up into multiple parts, but this is not really ideal. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于任何想知道的人来说,问题不在于 Quartz - 我在作业监听器中所做的事情导致了错误。
To anyone wondering, the issue was not with Quartz - something I was doing in a Job Listener was causing an error.