Automatic Scheduled Tasks Not Called

Stefan Sturm asked on July 1, 2019 13:11

Hello

We are using Kentico 8.1 and recently we set up an automatic scheduled tasks according the documentation: https://docs.kentico.com/k8/configuring-kentico/scheduling-tasks/configuring-scheduled-task-execution#Configuringscheduledtaskexecution-ConfiguringexecutionbytheKenticoapplication

We also inserted the web.config entry: <add key="CMSUseAutomaticScheduler" value="true" />

But the default behavior remains. The scheduled task only fires when there is a user activity on the website.

Any suggestions?

Kind regards Stefan

Recent Answers


Dmitry Bastron answered on July 1, 2019 13:44

Hi Stefan!

Have you tried setting up Windows service to process tasks instead? It should help.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 1, 2019 14:08

I believe the documentation specifically says if the website is not active or not running, it will not automatically start up to process any tasks. The best and easiest thing to do is to ping your site every 15-20 minutes so it keeps the site alive. Also if you're using IIS you can set the timeout and what actions you want to take when the site is inactive.

1 votesVote for this answer Mark as a Correct answer

Stefan Sturm answered on July 1, 2019 14:18

Hello Brenden,

thanks for your reply. Would it be helpfull to set the ApplicationPool "Start Mode" to "AlwaysRunning"? Would that solve the problem?

Stefan

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 1, 2019 15:09

It will help. The problem is when you set the web.config key CMSUseAutomaticScheduler to true, it's not specified how "periodic" the page is requested.

There is also a "Keep alive" webpart you can place on your master page which is highly configurable which will help as it requests a given page on a given interval.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.