NserviceBus 调度程序停止执行作业 [英] NserviceBus scheduler stops executing job
问题描述
我们的一个代理有一项每 5 秒运行一次的作业,该作业似乎无缘无故地停止.没有抛出异常,另一个计划任务,确认代理正常运行的心跳,仍然有效,并且 Windows 事件日志中没有错误消息.计划任务正常运行了几天,然后无缘无故地停止了,就好像计划程序忘记再次启动任务一样.
One of our agents has a job that runs every 5 seconds, which seems to stop for no apparent reason. There are no exceptions being thrown, another scheduled task, a heartbeat that confirms that the agent is running correctly, still works, and there are no error messages in the windows event log. The scheduled task runs correctly for a few days, but then stops for no apparent reason, as if the scheduler forgets to start the task again.
我没有调试信息,因为没有,所以我的问题是是否有其他人经历过这种情况?会不会是定时任务运行时间过长,或者占用资源过多导致的?例如,计划任务没有正确终止(出于某种原因),然后调度程序无法分配线程来启动新任务?
I have no debug information, since there are none, so my question is if anyone else has experienced this? Can it be caused by a scheduled task running for too long, or taking up too many resources? As in, the scheduled tasks don't terminate correctly (for some reason) and then the scheduler being unable to allocate a thread to start a new task?
在 NServiceBus Google 群组上对此进行了并行讨论:https:///groups.google.com/forum/#!topic/particularsoftware/0GAI9oqmp74
There is a parallel discussion about this on the NServiceBus Google groups: https://groups.google.com/forum/#!topic/particularsoftware/0GAI9oqmp74
推荐答案
在 NServiceBus 存储库中提交了一个错误:https://github.com/Particular/NServiceBus/issues/2133
A bug has been filed in the NServiceBus repo: https://github.com/Particular/NServiceBus/issues/2133
这篇关于NserviceBus 调度程序停止执行作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!