Tag Info

New answers tagged


This is how I did it: SPWebApplication webApp = SPWebApplication.Lookup(new Uri(webAppUrl)); var customJob = (from job in webApp.JobDefinitions where job.Name == "MyTimerJobName" select job).Single(); // for some reason wont't work if I try to get the job using [name] string jobUrl = ...


For every web application you can do the following: Get your timer job definition (SPJobDefinition) from SPWebApplication.JobDefinitions Get the guid: string jobDefID = SPJobDefinition.Id.ToString(); Add the guid in the query string http://srvr/_admin/JobEdit.aspx?JobId=jobDefID


In addition to the above, timer jobs are much easier to test, as you can just run them in visual studio. Another advantage is that if the timerjob has any configuration data it can be installed in a simple app,config


Here are few more differences between Timer Job and Windows Task schedulers: Timer Jobs Timer jobs require downtime to deploy. Control via Central Admin. Schedule of Timer Job will be backed up and restore in your normal process of SharePoint backup and restore. Can be deployed using standard WSP solution. Custom Timer Jobs provides the power to specify ...


Benefits of Sharepoint Timer jobs over Windows Task Scheduler are : Single point of failure : Windows Task Scheduler need to be configured on all the web servers. If you configure to run the job on 1 server only, and this server crashes, job will not work at all. Status Reporting : Windows Task Scheduler doesn't have any reporting on when was the last time ...


I like Arsalan's answer, however MS is pushing people to avoid server side development, which includes Timer Jobs. As timer jobs run on the SharePoint server, a poorly written timer job can have a negative impact on the farm. Also, if a customer ever moves to Office 365, any custom timer jobs will have to be re-written. An app run by the windows task ...


Our operations team says when you have a task that is really related to SharePoint, maybe list items iteration, logging etc etc. you should use Timer Job.. But if you have tasks not related to SharePoint at all or directly.. Than use Task Scheduler.. Example, we had an External Content Type made from SQL Server Database and the user wanted to iterate ...

Top 50 recent answers are included