I'm busy writing / debugging my first custom timer job in Sharepoint 2010.
What is working so far:
- The timer job installs
- The timer job can start
What's not working:
- Nothing else seems to be working. It just runs indefinitely without any results or progress.
My execute method so far:
public override void Execute(Guid contentDbId)
{
this.UpdateProgress(1);
Tasks.TaskMan taskMan = new Tasks.TaskMan();
taskMan.RunInsertTasks();
this.UpdateProgress(33);
}
Task man task should take about 5 minutes to complete. Basically what it will do is insert items to a list and to a taxonomy term store. The code tested in a console application works.
What could the problem be, I've followed the sample code on timer jobs down to the last letter, checked and rechecked, but it seems the job just isn't working for some reason.
Thanks in advance
Update
Changed my method to now be:
public override void Execute(Guid contentDbId)
{
this.UpdateProgress(1);
}
Same problem , seems to run indefinitely.