I have a timer job that needs to be executed every 3 hours. Unfortunately, SharePoint's scheduling classes do not facilitate this. How can I achieve this?
Suggestion 1: Thought of running the timer job every hour and maintaining a counter value, hence when the counter reaches 3, I will execute my logic and then reset the counter back to 0. To follow this appraoch I can store the counter value in 2 ways (There maybe more):
Store in the web.config for retrieval and update (AppSettings)
Maintain a SharePoint list to manage the counter value
which way is better to maintain the counter? or is there an easier approach to executing every 3 hours?
SPMinuteSchedule
to run every 180 minutes? – Robert Lindgren Jul 14 '15 at 11:57