Suppose I have a custom timer job that processes work items. How can I check whether the timer job has processed a specific
SPWorkItem without interfering with the actual processing?
If I try to initialize an
SPSite and the work item type's ID, I can get a reference to the work item. But initializing that collection also seems to remove the work item from the queue!
I tried calling
SPWorkItemCollection.RevertInProgressWorkItem, but that doesn't seem to do anything. If I reinitialize the
SPWorkItemCollection, it doesn't contain my work item anymore.