Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Scheduling starts item more often than configured, bug?
Previous Previous
 
Next Next
New Post 9/29/2007 2:02 AM
User is offline Evert van Es
7 posts
10th Ranked


Scheduling starts item more often than configured, bug? 

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 8:37 PM
User is offline Angel Vega
51 posts
www.micos.com.mx
10th Ranked


Re: Scheduling starts item more often than configured, bug? 

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 12:02 AM
User is offline Evert van Es
7 posts
10th Ranked


Re: Scheduling starts item more often than configured, bug? 

 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 1:15 AM
User is offline BONENFANT Etienne
27 posts
10th Ranked


Re: Scheduling starts item more often than configured, bug? 
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 12:51 AM
User is offline Evert van Es
7 posts
10th Ranked


Re: Scheduling starts item more often than configured, bug? 

 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Scheduling starts item more often than configured, bug?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com
Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP