Questions tagged [timer-jobs]

Timer Jobs are recurring background processes that are managed by a Scheduler. A timer job would consist of three parts: Timer Job Definitions, Timer Job Instances, and Timer Job Schedules.

Timer Jobs are recurring background processes that are managed by a

A timer job would consist of three parts: Timer Job Definitions, Timer Job Instances, and Timer Job Schedules.

118 questions
9
votes
2 answers

scheduling runnable tasks in java

I am following up an interesting question on so, on usage of ScheduledThreadPoolExecutor for some repeating task. Scheduling this object returns a ScheduledFuture object which one can use to cancel the next run of the task. One thing to note here…
bushman
  • 647
  • 2
  • 9
  • 14
8
votes
3 answers

Debugging Sharepoint timer jobs

I am creating my first Timer Job and want to debug it. I have installed the timer job through a feature, and added it to a webapplication's JobDefinitions collection, and added a SPMinuteSchedule to run every 5 minutes (for testing purposes). Then,…
Colin
  • 10,630
  • 28
  • 36
8
votes
1 answer

Scope of a timer job feature

I am writing a timer job for the first time. I am following the examples that can be obtained by googling as my reference. In many such articles, I am coming across the timer job features being activated to the Site Collection level or the Site…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
7
votes
1 answer

Best Practices for Deploying Timer jobs in Server Farm Environments with multiple WFE

i have a timer job which i want to run only once per day, for the entire farm. How do I Deploy it in a multiple WFE environment? Do I run the stsadm -o deploysolution command in every WFE, or just the one where I want to run it? Where should i…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
6
votes
5 answers

How do you instruct a SharePoint Farm to run a Timer Job on a specific server?

We have an SP timer job that was running fine for quite a while. Recently the admins enlisted another server into the farm, and consequently SharePoint decided to start running this timer job on this other server. The problem is the server does not…
James
  • 12,636
  • 12
  • 67
  • 104
6
votes
2 answers

"RunWithElevatedPrivileges" in SharePoint Timer Jobs?

Can we use SPSecurity.RunWithElevatedPrivileges in SharePoint timer jobs? Under whose identity will the timer job run under elevated privilegs? Any gotcha's and must know facts regarding this will also be appreciated.
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
6
votes
2 answers

SharePoint timer jobs not getting invoked

I have a timer job which has been deployed to a server with multiple Web front ends. This timer job reads it's configuration from a Hierarchical Object Store. This timer job is scheduled to run daily on the server. But the problem is that this…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
6
votes
2 answers

SPSite.Exists() returns true although the site collection doesn't exists

I'm currently working on a TimerJob which does some site collections management. When the job runs it looks into a list to retrieve the Url of a site collection then it calls SPSite.Exists() to check if the site still exists or not. To test the…
Flo
  • 27,355
  • 15
  • 87
  • 125
6
votes
3 answers

Problem in creating Timer Job

I have created a site collection inside a web application with user A as a site collection adminstrator. I have added a link in site feature page. On click of that link I am trying to create a timer job.Below is the code executed on click of the…
Anoop
  • 5,246
  • 6
  • 27
  • 29
5
votes
1 answer

SharePoint TimerJob: Using SPListItem.Update() in an instance of a class / static method

I have created a timer job (SPJobDefintion) which is properly registered and working in a sharepoint 2010 environment. In the Execute method of the Timer Job I'm able to use the following code, which sets a field of a specific SPListItem. This works…
Mat S
  • 51
  • 1
  • 4
5
votes
1 answer

How to report status from a SharePoint timer job

I have a SharePoint timer job that requires a configuration list to exist in a specific location in the site collection. If that list does not exist, I want to indicate that to the user so they can create (and populate of course) said list and rerun…
Kelly S. French
  • 12,198
  • 10
  • 63
  • 93
5
votes
1 answer

Manually start SharePoint timer job

I'd like to invoke a timer job installed on a SharePoint server manually. What would be useful is something along the lines of an stsadm command. My scenario is, I've deployed a solution with a bunch of features to a customers server. I don't want…
Daniel Revell
  • 8,338
  • 14
  • 57
  • 95
4
votes
2 answers

How to set "Job Description" of a custom SharePoint Timer Job

I wonder, how can I set the job description of a custom SharePoint Timer Job. When we are looking at the job definition properties through the central administration, there is the line 'Job Description'. But it's always empty in the custom timer…
Deniplane
  • 415
  • 9
  • 15
4
votes
2 answers

What account to use for SharePoint 2010 Timer Job

what account do you run the SharePoint 2010 Timer Job service under? Do you use the farm account or a separate one or just local service? Currently I use the farm account but the health analyzer says, it's not a good idea to use an account that has…
eXXL
  • 6,548
  • 3
  • 19
  • 7
4
votes
2 answers

Sharepoint Timer Job - Which server does the job execute on?

If I install a (timer job) feature to a Sharepoint front end server within a farm, which server executes the job? All of them? The job is locked at the job level, and the Execute method calls a web service on one specific machine on the farm, which…
OldBoy
  • 230
  • 4
  • 12
1
2 3 4 5 6 7 8