You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatestaticvoidScheduleJobs(){_timer.Change(Timeout.Infinite,Timeout.Infinite);_schedules.Sort();if(!_schedules.Any())return;varfirstJob=_schedules.First();var_now=Now;if(firstJob.NextRun<=_now){RunJob(firstJob);if(firstJob.CalculateNextRun==null){// probably a ToRunNow().DelayFor() job, there's no CalculateNextRun}else{firstJob.NextRun=firstJob.CalculateNextRun(_now.AddMilliseconds(1));}if(firstJob.NextRun<=_now||firstJob.PendingRunOnce){_schedules.Remove(firstJob);}firstJob.PendingRunOnce=false;ScheduleJobs();return;}varinterval=firstJob.NextRun-_now;if(interval<=TimeSpan.Zero){ScheduleJobs();return;}else{if(interval.TotalMilliseconds>_maxTimerInterval)interval=TimeSpan.FromMilliseconds(_maxTimerInterval);_timer.Change(interval,interval);}}
The text was updated successfully, but these errors were encountered:
FluentScheduler/FluentScheduler/JobManager.cs
Line 401 in 2979789
此处验证时间不合适 可能造成正数循环中断,建议修改为
The text was updated successfully, but these errors were encountered: