c# - Limit execution time in SharePoint Timer Job? -


i have situation need move huge data using timer job. can't using onetimeschedule may impact performance of sharepoint application during peak hours.

i want make run maximum of 5 hours day starting @ 20:00 everyday.

what best way?

you create sharepoint timer job. make timer job run every day @ given time. inside job use system.threading.timer stop main loop after 5 hours , exit job. within main loop move data - should make sure somehow persist state of main loop. in case job crashes or severe error occurs can continue processing stopped. hope helps...


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -