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...Using Modules a...Using Modules a...DNN Module / Scheduled Job DoWork runs at App startupDNN Module / Scheduled Job DoWork runs at App startup
Previous
 
Next
New Post
9/23/2015 10:23 AM
 

I switched the mode from Request to Timer, and now the job runs (and Completes and succeeds) every 10 seconds.

I'm so glad this isn't sending the 250 text messages to production users every time. Hahhahha!

 
New Post
9/23/2015 11:24 AM
 

Any thoughts on why when this job completes, that it sets the next start date to 1/1/1753, instead of Now.AddWeeks(1)?

 
New Post
9/23/2015 7:30 PM
 
maybe there is an issue with weeks, try to specify the interval in days.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/25/2015 9:17 AM
 
Sebastian Leupold wrote:
maybe there is an issue with weeks, try to specify the interval in days.

 

Sadly, this is doing nothing to change the outcome. The job runs, and then sets the next start date at 1/1/1753. I tried 6 days as the interval.

I'm not sure what to do at this point. We have a bunch of emails we need to send out, but this is going to be a disaster if we set it live.

 
New Post
9/25/2015 9:20 AM
 

public MessageEngine()
        {
        }

        public MessageEngine(ScheduleHistoryItem item) : base()
        {
            this.ScheduleHistoryItem = item;
        }

        public override void DoWork()
        {
            try
            {
                this.Progressing();
                // doing things here
                this.ScheduleHistoryItem.Succeeded = true;
                this.ScheduleHistoryItem.NextStart = System.DateTime.Now.AddDays(7); // have tried with and without this
                this.ScheduleHistoryItem.AddLogNote("Y U No Workie?");
                this.Completed();

and then close the try/catch and exit.


am I missing something?

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DNN Module / Scheduled Job DoWork runs at App startupDNN Module / Scheduled Job DoWork runs at App startup


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