Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.