locked
Change Disk Quota Warning timer job RRS feed

  • Question

  • I would like increase the frequency of "Disk Quota Warning" timer job. I updated the schedule of it to have it run hourly/minutely by:

    SPWebApplication webapp = SPWebApplication.Lookup(new Uri("http://xxxxxxxxxxxx"));
    
    
    
    			foreach (SPJobDefinition job in webapp.JobDefinitions)
    
    			{
    
    				if (job.Title == "Disk Quota Warning")
    
    				{
    
    					SPMinuteSchedule schedule = new SPMinuteSchedule();
    
    					schedule.BeginSecond = 1;
    
    					schedule.EndSecond = 59;
    
    
    
    					job.Schedule = schedule;
    
    					job.Update();
    
    					
    
    					
    
    				}
    
    			}
    
    

    On the Timer Definitions page of Central Admin, I see the schedule of this timer job is changed from Daily to Minutes. And I also see the Last Run Time get updated, which means this timer job is running as scheduled. However, I still recieve only one warning email of my site.

    What is the problem?

    Alex

    • Edited by Mike Walsh FIN Thursday, December 2, 2010 9:43 AM unnecessary swearing removed
    Thursday, December 2, 2010 9:34 AM

Answers