Skip to content
New issue

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

Months Bug #7

Closed
kyletinsley opened this issue Dec 11, 2012 · 1 comment
Closed

Months Bug #7

kyletinsley opened this issue Dec 11, 2012 · 1 comment

Comments

@kyletinsley
Copy link

Hi Jim,

The following code will not initialize if the current date is equal to or greater than the scheduled day and time.

private class Tasks : Registry
{
public Tasks()
{
DefaultAllTasksAsNonReentrant();

    Schedule(() =>
    {
        Console.WriteLine(DateTime.Now);
    }).ToRunEvery(1).Months().On(10).At(5, 0);
}

}

The above code throws an ArgumentOutOfRangeException with the message "Number must be either non-negative and less than or equal to Int32.MaxValue or -1. Parameter name: dueTime". It appears that the Timer class is being passed an invalid argument within FleunetScheduler. To reproduce, make sure you call TaskManager.Initialize(new Tasks()) sometime after (but no too far after) the 10th of the month at 5:00 AM. Oddly, initializing more than a few days after the scheduled date is not a problem. It only seems to be a problem within 5 days or so following the scheduled date.

Thanks for taking a look at this issue. Please let me know if you need any additional details.

Kyle

@jgeurts
Copy link
Contributor

jgeurts commented Dec 12, 2012

Should be fixed, thanks for the heads up with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants