Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
37 votes
Accepted

What is the purpose of keepalive.aspx?

Purpose of keepalive.aspx Here's the full code of the page in Sitecore 8.0: <%@Page Language="C#" %> <%@ Import Namespace="Sitecore.Analytics" %> <!DOCTYPE html> <html> <...
Dmytro Shevchenko's user avatar
13 votes

How to stop schedule publishing in weekends?

This can be achieved by updating your Schedule field on your task. 127 represents the days of the week, this task is meant to run. This only makes sense if you convert it to binary. 127d = %01111111 ...
Mark Cassidy's user avatar
  • 25.3k
12 votes
Accepted

Is it possible to have an Sitecore Agent interval set to more than 24hrs?

Definitely - all Sitecore does when reading in your agents is parse the interval as a TimeSpan via the following line of code, from the Sitecore.Tasks.Scheduler.ReadAgents method: TimeSpan timeSpan = ...
Zachary Kniebel's user avatar
12 votes

What is the purpose of keepalive.aspx?

Adding to Dmytro's answer - indeed the KeepAlive.aspx serves to keep a heartbeat running. While in most cases this is the equivalent of setting the idle session timeout to 0, there are cases where ...
Mark Cassidy's user avatar
  • 25.3k
11 votes

What is the purpose of keepalive.aspx?

I personally think the KeepAlive page is there for people who don't understand or haven't bothered to tune their IIS application settings. Even with the KeepAlive page, if your site sits idle for 29 ...
Chris Sulham's user avatar
  • 1,458
10 votes

What is the purpose of keepalive.aspx?

I don't know that your question needs more than 4 answers, maybe you've got what you wanted, but I do have another aspect not previously mentioned :) -- so let me add yet another answer. The ...
G Killian's user avatar
  • 1,309
8 votes
Accepted

Scheduled tasks on load balanced CM server

I would suggest switch to Database Tasks (/sitecore/system/Tasks/Schedules/), it has out-of-box mechanism to handle scheduled tasks for load balanced environments. The benefit you will have is, it ...
Yogesh Patel's user avatar
  • 1,007
8 votes

How to make the scheduled task to run at the same time everyday

It's not possible to run at exactly the same time but it’s possible to get it close to the same time every day. Scheduled tasks are run in sequence by the Sitecore scheduler. The scheduler checks ...
Vlad Iobagiu's user avatar
  • 18.6k
7 votes
Accepted

Get Items by template id in a scheduled task

The scheduled task is going to be a tool used to execute code you've written. There are ways to create custom commands in C# or use the existing on that is included with Sitecore PowerShell Extensions ...
Michael West's user avatar
  • 18.2k
7 votes

Sitecore Scheduled Task not working on a CD server

This is a normal behaviour in Sitecore, you need to add agents for schedule task on CD. You need to add in your config files : <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" ...
Vlad Iobagiu's user avatar
  • 18.6k
7 votes
Accepted

How can I get a list of execution times for my Sitecore scheduled task?

You can try the Sitecore Log Analyzer. You can filter by timeframe and add a string qualifier and look for Job started/ended statements in the logs.
Chris Sulham's user avatar
  • 1,458
6 votes

What is the purpose of keepalive.aspx?

This is the reason it's there yes, it is so: Scheduled tasks run as expected, even when traffic is low / non-existent There is no delay hitting the site if the application pool has recycled - so no ...
Steven Newstead's user avatar
6 votes

Scheduled tasks on load balanced CM server

Config based tasks will run on the server that it is configured to run on by the presence of the task in its config. In a load balanced CM environment, if you have a config task that you only want to ...
Pete Navarra's user avatar
  • 14.7k
6 votes

What is the purpose of keepalive.aspx?

Besides what has been mentioned on the other answers it can be useful if you have a load balancer and you want to configure a page where the load balancer can ping sitecore to know if the node is up ...
Diego's user avatar
  • 5,688
6 votes
Accepted

How does a Hook differ from a Scheduled Task?

In the previous question you gave an excellent description on what a Hook is. 1. How are Scheduled Tasks different from Hooks? Hooks are specific pieces of code that are loaded into the worker ...
Pete Navarra's user avatar
  • 14.7k
6 votes

How to stop schedule publishing in weekends?

Disable your default publishing in web.config <agent type="Sitecore.Tasks.PublishAgent" method="Run" interval="00:00:00"> Override Sitecore.Tasks.PublishAgent <agent type="YourMethod, ...
Pankaj Prasad's user avatar
6 votes

Scheduler not hitting the methods

Your class needs to be non-generic. I recommend inheriting from BaseAgent. Right now, Sitecore can't instantiate your class. I don't know exactly how your class is defined, but I know it has a ...
Mark Cassidy's user avatar
  • 25.3k
5 votes
Accepted

Unlocking items via Sitecore PowerShell Extensions scheduled task

If a trick with security disabler will not work you could try this $admin = [Sitecore.Security.Accounts.User]::FromName("sitecore\some_admin_account", $false) [Sitecore.Security.Accounts.UserSwitcher]...
Alan Płócieniak's user avatar
5 votes

Executing Sitecore logic from a Windows Scheduled Task

Here is a low complexity example using Sitecore PowerShell Extensions. Make sure that the SPE Remoting Module files are saved to a path configured in $env:PSModulePath. Save script to desired path: ...
Michael West's user avatar
  • 18.2k
5 votes
Accepted

Extending (adding fields) 'Task' & 'Command' system templates for scheduling

First things first - You shouldn't extend templates this way. Best practice is to set inherited (in your case OOTB) template as base template to your custom template and add your custom fields. You ...
Peter Procházka's user avatar
5 votes
Accepted

Sitecore Scheduled task runs on startup

Sitecore's built-in Tasks -> Schedulers functionality works well when you need to execute a task occasionally, but it becomes problematic if you require to run some routine at a certain time every ...
Kate Orlova's user avatar
  • 1,294
4 votes
Accepted

Executing Sitecore logic from a Windows Scheduled Task

The built-in Sitecore scheduler can certainly be frustrating in its limitations. So using a WebApi endpoint that the task can call is certainly one way of doing things. You should keep security in ...
Matt's user avatar
  • 373
4 votes

Zipping/archiving old log files?

An alternative to using .net code or storing logs in the database: We used the forfiles command for things like this. Place the command(s together) in a batch file and have that executed as a ...
Gatogordo's user avatar
  • 20.1k
4 votes
Accepted

Get last time job ran date/time

You cannot. When Sitecore executes any job, it runs <job> pipeline defined in Sitecore.config (or web.config in older versions). This pipeline has SignalStart and SignalEnd processors, but the ...
Marek Musielak's user avatar
  • 23.8k
4 votes

I have a stuck Sitecore.Jobs.Job, now how do I kill that?

You can use next code to stop a Sitecore job : Sitecore.Jobs.Job job = Sitecore.Jobs.JobManager.GetJob("yourjobname"); if (job != null) { job....
Vlad Iobagiu's user avatar
  • 18.6k
4 votes

Get Items by template id in a scheduled task

If you don't want to install SPE module like @Michael West suggested, there is another way to do this. You can implement a custom class for your agent and add it to schedule with a config patch. A ...
Bartłomiej Mucha's user avatar
4 votes

How to use TaskDatabaseAgent out-of-the-box way?

I believe that you are reading too far into John's details. If you have a task that you need to run on some schedule, you can create a Sitecore Task Command item, which contains the Type to your ...
Pete Navarra's user avatar
  • 14.7k
4 votes

How to add auto publishing scheduler in Sitecore to run every 10 minutes

The autopublisher is an agent that is disabled by default. You will find it in the config: <agent type="Sitecore.Tasks.PublishAgent" method="Run" interval="00:00:00"> <param desc="source ...
Gatogordo's user avatar
  • 20.1k
4 votes
Accepted

Error when executing right to be forgotten in scheduled task

This is a known behavior of xConnect. You can not use ExecuteRightToBeForgotteninside a batch enumerator. Method ExecuteRightToBeForgotten looks like : public static RightToBeForgottenOperation ...
Vlad Iobagiu's user avatar
  • 18.6k
4 votes
Accepted

How to pass parameters in Powershell scripted task scheduler?

Using the OOTB powershell scripted task schedule, you will not be able to pass the parameters from the Tasks item itself. However, there are 2 possible solutions. 1st Solution You can create a new ...
Hishaam Namooya's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible