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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Scheduler timingScheduler timing
Previous
 
Next
New Post
6/25/2009 4:38 PM
 

Hi.. i've created a custom Scheduler item, and it works for the most part.  Howver, the S/E/N dates (Start/End/Next) seem peculiar.

I'm seeing N dates set in the past.

S: 6/25/2009 3:25:14 PM
E: 6/25/2009 3:25:20 PM
N: 6/23/2009 2:17:56 PM

The scheduler manages this, and sometimes get's it right.. 10 minutes out based on the 10 minute configuration I set.  But sometimes it's set to a date in the past.

Any one seen this or have any ideas?

Thanks,

Jay

 
New Post
6/26/2009 3:51 AM
 

please provide us with the details of the scheduler job settings, thank you.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/29/2009 9:52 AM
 

Thanks for any help.. here's what I'm doing with the scheduler.  

 

     public override void DoWork()
        {
            try
            {
                this.Progressing();
                

                this.ScheduleHistoryItem.AddLogNote("Starting Import");
                this.ScheduleHistoryItem.AddLogNote("Getting AllClients");

                foreach (int portalId in _Data.getAllClients())
                {
                    _Data = new Data();

                     _portalId = portalId;
                    //_portalId = 0;

                                

// The Process Feeds call the Data() class as well to retrieve data from a web service call. 

 

                     _cursors = _Data.getCursors(_portalId);
                     
                     //process catalog feed
                     this.ScheduleHistoryItem.AddLogNote("Processing Catalogs for Portal " + _portalId);                    
                     processCatalogFeed(_cursors[0]);
                     this.ScheduleHistoryItem.AddLogNote("Processing Products for Portal " + _portalId);
                     processProductFeed(_cursors[1]);

//Also not that the LogNotes  only show up when the scheduler fails to complete (ie throws an exception)
                     
                }

                this.ScheduleHistoryItem.AddLogNote("Ending Import");
                this.ScheduleHistoryItem.Succeeded = true;               
                this.Completed();
 

//I added this to ensure the next start time is not set to some time in the past


                if (this.ScheduleHistoryItem.NextStart < DateTime.Now)
                    this.ScheduleHistoryItem.NextStart = DateTime.Now.AddMinutes(15);


            }
            catch(Exception e)
            {
                
                this.Errored(ref e);
                this.ScheduleHistoryItem.Succeeded = false;
                this.ScheduleHistoryItem.AddLogNote("Unexpected Error:" + e.ToString());

                //add a log entry
                LogInfo li = new LogInfo("<Feeds>Do Work</Feeds");
                LogDetailInfo ldi = new LogDetailInfo("Exception", e.ToString());
                li.LogProperties.Add(ldi);
                li.LogCreateDate = DateTime.Now;
                li.LogTypeKey = "DEBUG";
                li.LogPortalID = 0;
                _log.AddLog(li);
            }
        }

 
New Post
6/29/2009 10:09 AM
 

I'm also seeing this, which I dont' know how to read exactly.  My Scheduler class is "overdue" and not running on schedule right now.. though a Purge Scheduler History is running and taking up the thread maybe?  Also the Start / Stop links are disabled.. I've never seen them enabled.  Thanks for any help,

 

Current Status: WAITING_FOR_REQUEST
Max Threads: 1
Active Threads: -1
Free Treads: 2
 
New Post
6/29/2009 10:17 AM
 









 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Scheduler timingScheduler timing


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