更改计划后计时器作业不运行

发布于 2024-10-06 09:13:56 字数 199 浏览 0 评论 0原文

我创建了一个自定义计时器作业。当我使用 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 技术交流群。

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

发布评论

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

评论(1

旧故 2024-10-13 09:13:56

来自参考:http ://www.mstechblogs.com/shailaja/reschedule-or-change-the-interval-of-a-sharepoint-custom-timer-job/

的时间间隔

  • 重新安排或更改 SharePoint 自定义计时器作业更改 自定义代码中的计划间隔使用
    SharePoint 对象模型的 SPDailySchedule 类
  • 在 GAC 中构建和部署。
  • IISRESET
  • 转到命令提示符并导航到 SharePoint 12 配置单元
  • 卸载现有的计时器功能,例如 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

  • Change the schedule interval in the custom code using the
    SPDailySchedule class of the SharePoint object model
  • Build and deploy in the GAC.
  • IISRESET
  • Go to the command prompt and navigate to the 12 hive of SharePoint
  • 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

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