I have the following timer job, not done by me.
When I attach debugger to OWSTIMER.EXE the constructors are triggered but the ProcessWorkItem method is never step into.
There are about 4000 workitems on the scheduledworkitems table. so I dont know whats wrong.
class MoveRequestWorkItemTimerJob : SPWorkItemJobDefinition
{
string requestNumber = null;
SPListItem statusItem = null;
// Constructor
public MoveRequestWorkItemTimerJob()
: base()
{
}
// Constructor
public MoveRequestWorkItemTimerJob(string name, SPWebApplication webApp)
: base(name, webApp)
{
}
// Guid of work items to be processed by this job
public override Guid WorkItemType()
{
// replace with your own Guid
Guid g = new Guid("34EC0602-B18B-418C-8CAA-77FF9E4CF3F7");
return g;
}
public override int BatchFetchLimit
{
get
{
return 1000;
}
}
protected override bool ProcessWorkItem(SPContentDatabase contentDatabase,
SPWorkItemCollection workItems, SPWorkItem workItem, SPJobState jobState)
{