We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FluentScheduler/FluentScheduler/JobManager.cs
Line 401 in 2979789
private static void ScheduleJobs() { _timer.Change(Timeout.Infinite, Timeout.Infinite); _schedules.Sort(); if (!_schedules.Any()) return; var firstJob = _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; } var interval = 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:
Yes, this is a dangerous bug
Sorry, something went wrong.
No branches or pull requests
FluentScheduler/FluentScheduler/JobManager.cs
Line 401 in 2979789
此处验证时间不合适 可能造成正数循环中断,建议修改为
The text was updated successfully, but these errors were encountered: