SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web.config setting like IntervalInMinutes. I would like to use the setting value to create my SPSchedule instance and run my job. The interval should be set in minutes.

I know how to use SPMinuteSchedule and run the job every 0 < n < 60 minute or how to use SPHourSchedule and run the job every 0 < n < 24 hours, But what if I want to have 90 or 2000 minutes interval as the setting value?

So, the question is: what should I do to run the job with the minutes interval 0 < n < 100000?

Thank you.

share|improve this question

Based on this thread, it appears you are somewhat limited in how you can use the SPMinuteSchedule for an interval greater than 60 minutes.

As one user in that thread suggests, your best option may be to set the SPMinuteSchedule.Interval to 45, then only have the timer job "do its work" every other time it runs. Not the cleanest solution, I know, but that would do the trick.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.