Sharepoint 计时器作业

发布于 2024-08-07 08:22:53 字数 171 浏览 3 评论 0原文

有没有办法调整 Sharepoint 计时器作业的时间表?我在中央管理中看到的唯一选项是启用/禁用作业的选项以及更改作业名称的方法。我是否需要某种权限才能实际开始工作或编辑任何有意义的数据?

当有人离开公司时,我继承了几个项目,所以请原谅我对 Sharepoint 的所有事情一无所知。

谢谢 乔

Is there a way to adjust the schedule of a Sharepoint timer job? The only options I'm seeing in central admin is the option to enable/disable the job and a way to change the job name. Are there some kind of permissions that I need to actually start a job or edit any meaningful data?

I inherited a couple of projects when someone left the company, so please pardon my absolute ignorance of all things Sharepoint.

Thanks
Joe

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

养猫人 2024-08-14 08:22:53

您无法通过 UI 调整计时器作业。而且您无法自己启动计时器作业,它们由负责它们的 Windows SharePoint Services 计时器服务启动。要设置计时器作业的计划,您必须访问并编辑 SPJobDefinition 通过代码的对象(SharePoint 对象模型中计时器作业类的名称)。

SPJobDefinition 对象具有 Schedule 属性,您可以向该属性传递 SPSchedule 对象设置作业的开始时间和重复次数。您可以选择不同的计划类:

  • SPOneTimeSchedule
  • SPMinuteSchedule
  • SPHourlySchedule
  • SPDailySchedule
  • SPMonthlySchedule
  • SPWeeklySchedule
  • SPYearlySchedule

但我不会更改 SharePoint 附带的计时器作业的计划,除非您知道自己在做什么。

You cannot adjust timer jobs via the UI. And you cannot start a timer job by yourself, they get started by the Windows SharePoint Services Timer service who is responsible for them. To set the schedule for a timer job you have to access and edit the SPJobDefinition object (name of the timer job class in the SharePoint object model) via code.

A SPJobDefinition object has a Schedule property to which you can pass a SPSchedule object to set the start time and the repetition of the job. There are different schedule classes you can select from:

  • SPOneTimeSchedule
  • SPMinuteSchedule
  • SPHourlySchedule
  • SPDailySchedule
  • SPMonthlySchedule
  • SPWeeklySchedule
  • SPYearlySchedule

But I wouldn't change the schedule of the timer jobs that come with SharePoint unless you know what you are doing.

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