自定义计时器作业在同一服务器上运行多次 [英] Custom Timer Job Running multiple times on same server
问题描述
自定义计时器作业在同一服务器上运行多次.以前它是同时在多台服务器上运行的,但是我点击了下面的链接并更新了代码以对其进行修复,但是现在它每天运行3次.
Custom Timer Job Running multiple times on same server. Previously it was running on multiple servers at same time but I followed below link and updated the code to fix it but now it is running daily three times.
https://bhandariasb.wordpress.com/2013/08/07/how-to-prevent-sharepoint-timer-jobs-from-running-multiple-times/
https://bhandariasb.wordpress.com/2013/08/07/how-to-prevent-sharepoint-timer-jobs-from-running-multiple-times/
有人可以帮助我解决问题吗?
Can anyone help me to resolve the issue?
任何帮助将不胜感激.
谢谢
OK29
推荐答案
HI,
根据您的要求,SPJobLockType.Job是正确的枚举值,并且您已经在使用它.因此,我相信您应该尝试从services.msc重新启动计时器服务.您还可以检查计时器作业的调度频率 运行.
According to your requirement, SPJobLockType.Job is a correct enumeration value and which you are already using. So I believe you should try re-starting the timer service from services.msc . Also you can check, how often the timer job is scheduled to run.
您可以从下面的文章中查看有关SPJobLockType枚举的更多信息.
you can check more about the SPJobLockType enumeration from the below article.
https://blogs.msdn.microsoft.com/besidethepoint/2011/11/13/sharepoint-timer-job-locks-and-scope/
https://blogs.msdn.microsoft.com/besidethepoint/2011/11/13/sharepoint-timer-job-locks-and-scope/
这篇关于自定义计时器作业在同一服务器上运行多次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!