Try our conversational search powered by Generative AI!

Automatic Run scheduled job on a specific time every day

Vote:
 

Hi ,

Please Help!  
I have created a scheduled job in EPiServer 6.0 programatically(below is my code).After exectuing below code, job with name  MyJob has created in Episerver.
When i clicks on run manually button, job runs fine and job execution details enters correctly in episerver database table tblScheduledItem. The LastExecution and NextExecution datetime details enters in tblScheduledItem table in UTC datetime format not in my system's datetime format (i.e. GMT+5:30).

I clicked on Active checkbox and enabled the job and set the Next Schedule datetime two minutes ahead of my system's current datetime and finally click on save button. One message appears Settings has been saved . Now i wait for two minuts to run the job autamatic after two minute , but my job did not run on saved time interval.

The problem is coming, job is not running on scheduled time interval.  

[ScheduledPlugIn(DisplayName = "MyJob", Description = "test job", SortIndex = 1)]

public class MySecondJob
{
public static void Execute()
{
Console.Write("Your Job Executed ");
}
}

Please Help! 

#179143
Jun 01, 2017 9:06
Vote:
 

Is the Episerver Scheduler Windows service installed and running on the machine you are testing on?

#179540
Jun 14, 2017 23:57
Vote:
 

Yes ,Episerver Scheduler Windows service installed and running on the machine i m testing on

#179553
Jun 15, 2017 9:32
Vote:
 

So there's no error message in the History tab for the scheduled job? 

There might be other queued jobs in tblScheduledItem that prevents your job from starting.

Have a look at the troubleshooting suggestions at https://stackoverflow.com/questions/17651558/episerver-schedule-job-not-running-automatically

If clearing the queue doesn't help, you might want to add more logging to see where the scheduler service stops:

https://world.episerver.com/Blogs/Tobias-Nilsson/Dates/2010/12/Troubleshooting-the-Scheduler/

#179558
Jun 15, 2017 10:27
Vote:
 

Like I wrote on that SO post... 

If your tblScheduledItem is missing the column SecondsAfterLastPing you should apply this hotfix:

http://world.episerver.com/Blogs/Shahid-Nawaz/Dates/2012/1/General-Hotfix-CMS-6-R2/

Otherwise all scheduling can stop completely and never recover.

#179561
Jun 15, 2017 10:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.