更改计划后计时器作业不运行
我创建了一个自定义计时器作业。当我使用 SPMinutSchedule 每 5 分钟安排一次时,它在开发和初始测试期间运行良好。目的是在生产中每天运行一次。因此,我使用 SPDailySchedule 更改了计划,但它停止运行。我通过每次更改时间表时清除服务器的缓存来修复它。
我使用具有 Web 应用程序范围的功能来部署作业。
我在这里错过了什么吗?
I created a custom timer job. It used to run fine during development an initial testing when I using SPMinutSchedule for scheduling it every minute of 5 minutes. The intention is to run it once a day in production. So, I changed the schedule using SPDailySchedule and it stopped running. I kind of fixed it by clearing the cache of the server each time I change the schedule.
I deploy the job using a feature with Web Application scope.
Am I missing something here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自参考:http ://www.mstechblogs.com/shailaja/reschedule-or-change-the-interval-of-a-sharepoint-custom-timer-job/
的时间间隔
SharePoint 对象模型的 SPDailySchedule 类
卸载现有的计时器功能,例如 stsadm.exe –o uninstallfeature –filename yourfeaturename\feature.xml
安装新的计时器功能,例如 stsadm.exe –o installfeature –filename yourfeaturename\feature.xml
转到 Windows 服务并重新启动 Windows SharePoint Services 计时器
From REF: http://www.mstechblogs.com/shailaja/reschedule-or-change-the-interval-of-a-sharepoint-custom-timer-job/
To reschedule or change the interval of a SharePoint custom Timer Job
SPDailySchedule class of the SharePoint object model
Uninstall the existing Timer feature, for example, stsadm.exe –o uninstallfeature –filename yourfeaturename\feature.xml
Install the new Timer feature, for example, stsadm.exe –o installfeature –filename yourfeaturename\feature.xml
Go to the windows services and restart the Windows SharePoint Services Timer