FluentScheduler icon indicating copy to clipboard operation
FluentScheduler copied to clipboard

Run.Every(DayOfWeek) called multiple times with version 6.x

Open simoneluconi opened this issue 4 years ago • 1 comments

Hi, i have downloaded and compiled the lastes version of FluentScheduler 6 from the repo. I have a schedule set like this:

var weeklyReport = new Schedule(
                 () => EndWeek(),
                 run => run.Every(DayOfWeek.Friday).At(16, 0)
             );

The schedule start correctly at 16:00 of Friday, but it's been called continuously for like 65k times, not one time.

I have also set a schedule to run every day at the same time:

 var dailyReport = new Schedule(
                   () => EndDay(),
                   run => run.Every(1).Days().At(16, 0)
               );

but this seems to be called correctly only one time.

It's a bug or i am doing something wrong? Thanks.

simoneluconi avatar Aug 31 '20 07:08 simoneluconi

This is indeed a bug. Going to fix it right away, thanks for reporting it.

VitorCioletti avatar Aug 31 '20 12:08 VitorCioletti