Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Scheduling starts item more often than configured, bug?Scheduling starts item more often than configured, bug?
Previous
 
Next
New Post
9/29/2007 5:02 AM
 

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

 

 
New Post
9/30/2007 11:37 PM
 

I made a schedule item once for a process exactly the same as you: send emails. i don't think it is a long-process problem because my schedule item normally runs for 40 to 50 seconds. It sends 80 to 300 email daily.

I think the problem is the way that you configured DNN to run your item and the way your item checks if it has already sent an email to you today. Be sure to set the DNN scheduler to the "By request" mode and to check in your code for the date of the last email and save that somewhere to be sure nothing funny happens.

Greetings

 
New Post
10/1/2007 3:02 AM
 

 Thank you for your reply but I prefer to seek answers to my questions, looking for the root of the problem will make dnn software better. (or at least increase my understanding of dnn...)

But thank you for your suggestion to work around the problem.

But I am curious, why did you configure the scheduler to run "by request" ? and why did you do a seperate check to see if the job had already run?  Did you also run into problems of items running more than you bargained for?

 

 
New Post
10/1/2007 4:15 AM
 
I have the same problem, may be since I have updated from 4.4 to 4.5.3.
My scheduler is executed twice instead of one.
And one day, my schedule looped and each mail has been sent to each employee untill server memory is full !

As you mentioned, I just change in host settings the scheduler mode to Request Method rather than Timer Method.
I will see tomorrow if execution is correct like that.


 
New Post
10/2/2007 3:51 AM
 

 

Thank you for your reply. it seems your troubles are the same as mine.  You must have made a name for yourself on sending that many emails !!!!

If changing the host settings to Request Method "solves" your problem then this could be because the next request is not while the schedule item is running....  And thus it will be a matter of time before a request is made at the right time and the problem can again re-occur.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Scheduling starts item more often than configured, bug?Scheduling starts item more often than configured, bug?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out