I think I have found a bug in the dnn scheduler. I am however not sure, so perhaps someone can help me out to find the problem at hand....
It looks as if a schedule item is being run more often than configured when it is a long running process. my custom schedule item sends an email, I now receive more emails than expected. and it is getting very irritating receiving the same email more than once...
Here is a more detailed description of my problem:
What I Did:
I Developed a SchedulerClient that sends an email. I added a schedule item in the hosts menu under schedule. And set options of item to run once every day and set "catch up" disabled.
What I Expect:
To receive one email every day due to this schedule.
What Happened:
I receive one but sometimes more than one email! (usually two emails every day)
In the schedule history I see two entries instead of one... And when debug logging is turned on for the DNNScheduler then I see two entries "added to process group.." for this schedule item.
It looks like my schedule Item takes a very long time to process (more than 1 minute) and I think the dnnscheduler thinks the item has not been run so it starts it again...
I think this is due to function:
>> IsInProgress(objScheduleItem)
as seen in sourcefile:
DotNetNuke_04.06.00_Source\Library\Providers\SchedulingProviders\DNNScheduler\Scheduler.vb