Skip to main content
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.4k
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.4k
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

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.8k
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.8k
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
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.6k
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.4k
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,698
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
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
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.6k
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,329
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

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
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
  • 24.2k
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.8k
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

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.3k
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.8k
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
4 votes
Accepted

Sitecore task schedule editor missing

Sitecore does not come with any editor for schedules out of the box. It must be a custom plugin that is used in your solution. There is a plugin which looks like this: It's pretty old though. If that'...
Marek Musielak's user avatar
  • 24.2k
3 votes

Unlocking items via Sitecore PowerShell Extensions scheduled task

It sounds like you are running into a permissions issue. You could try wrapping the whole script in a security disabler like this: New-UsingBlock(New-Object -TypeName "Sitecore.SecurityModel....
Richard Seal's user avatar
  • 20.8k
3 votes
Accepted

How to programmatically update Last Run time for a synchronous scheduled task

Since you did not provide any context of the task, let's say that you have a task which needs to update the fields of Sitecore Items. So, when the time comes, the task will trigger the code and the ...
Hishaam Namooya's user avatar

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