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>
<...
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
...
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 = ...
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 ...
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 ...
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 ...
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 ...
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/" ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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]...
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:
...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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'...
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....
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scheduled-tasks × 65scheduler-job × 8
publishing × 6
powershell-extensions × 5
commands × 3
azure × 2
sitecore-api × 2
multilingual × 2
sitemap × 2
sxa × 1
sitecore-client × 1
xconnect × 1
content-editor × 1
configuration × 1
indexing × 1
experience-analytics × 1
security × 1
workflow × 1
multisite × 1
mongodb × 1
data-exchange-framework × 1
logging × 1
performance-optimization × 1
publishing-service × 1
scaling × 1