Questions tagged [scheduled-tasks]

For questions related to Sitecore's scheduled tasks feature, including configuration, implementation of tasks and agents, etc.

Filter by
Sorted by
Tagged with
2
votes
0answers
105 views

Sitecore schedule task not running on the XP scaled environment (CM server)

We’ve configured Sitecore schedule task, which runs at every 1 hour. The schedule task is running fine after deployment/web app restart but after sometime it’s not working as expected. We’ve verified ...
0
votes
0answers
21 views

Sitecore DateTime retrieval error

In one of my applications, I am running a scheduled import process on Sitecore CM. Scheduled job is set to run every 30 minutes. Whenever the sync runs, I update a root item's field with the sync ...
5
votes
1answer
69 views

Error when executing right to be forgotten in scheduled task

I'm trying to create a Sitecore scheduled task to automatically ExecuteRightToBeForgotten for contacts that haven't had any interaction with the site for a number of days. I can get the contacts I ...
2
votes
0answers
25 views

DEF Run Selected Pipeline Batches Command as Admin User

I have a pipeline batch which sync external data into Sitecore items. I extend RunPipelineBatchCommand to run as admin user, default is running as Context.User: protected override User ...
3
votes
1answer
105 views

Periodically cleanup Sitecore Analytics data

We want to clean up Sitecore Analytics data (MongoDB + SQL) that are old (say 3 months). I already looked at Sitecore ADM and this question However, it seems that Sitecore ADM does not support ...
2
votes
0answers
21 views

Is there an impact of using AsParallel in a scheduled task in Sitecore

I know this may be hard to answer out of context, but are there any gotchas or things to be aware of when using AsParallel within a Sitecore scheduled task? We have a scheduled task in our solution ...
0
votes
1answer
84 views

How do I adapt my function to Schedule job?

I have a function like below which give me the list of items which are closer to publishing date but not yet approved in workflow. I have to mail this list to few people. private void ...
1
vote
0answers
135 views

Scheduled Task not working in multi-server environment

I have created a scheduled task in Sitecore, which runs fine in our Staging environment but the task did not trigger when moved to Production. There are no related logs or errors. The last run time ...
2
votes
1answer
82 views

Check access rights programmatically for scheduled task

I have a scheduled task in Sitecore. In the task I need run the code, that send notification to all users that have access to specific WorkFlow state. I got list of all users under sitecore domain ...
1
vote
1answer
746 views

Scheduled Task running multiple times when it should only run once an hour

I have a scheduled task for sending out weekly emails to users who have subscribed. I have my task created in Sitecore and set to run on Fridays, at a minimum interval of 00:59:59; in the code, it ...
0
votes
1answer
214 views

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

Basically I am trying to extend (add fields & make a copy) of the 'Command' and 'Task' templates which are under sitecore/Templates/System/Tasks Duplicating them and adding fields to them is not ...
1
vote
0answers
307 views

How to add multiple Publish Agent?

I'm trying to add multiple PublishAgent as below but it resolved to only one PublishAgent as visible in the /ShowConfig.aspx <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> &...
0
votes
1answer
660 views

Scheduled publish/unpublish strategy

What is the recommended best approach to scheduled publish/unpublish strategy? Ideally, I'd want to be able to make a page or rendering on a page to publish/unpublish at a specific date/time. I ...
2
votes
3answers
171 views

One CD server site goes down-Notification

Using 3 CD server to host my sitecore site. Using load balancer navigating the traffic on servers. Some time one of the CD server site goes down how we can get notification. Is there any way run some ...
6
votes
1answer
320 views

How to ensure two scheduled tasks won't run in parallel

It looks like out of the box Sitecore is able to prevent the same scheduled task from running simultaneously if a previous run hasn't finished yet (time interval between runs is less than time ...
1
vote
1answer
342 views

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

My requirement is to run the publishing scheduler every 10 minutes and clear cache. Do we have any OOB feature, functionality in Sitecore which can be used to do it or we need to write custom job/...
3
votes
1answer
58 views

Sitecore task for multilingual site in single node

I have a multilingual site with single node approach. Requirement is simple, need to create a task to fetch all items and generate a XML file. I have created a Sitecore scheduled job and command and ...
3
votes
2answers
1k views

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

Here is the information from chapter Registering Tasks in Sitecore Database from a book Professional Sitecore Development written by John West: In addition to agents defined in the Web.config file, ...
6
votes
2answers
1k views

Get Items by template id in a scheduled task

Scenario: I have over 10,000 items in my sitecore/content tree. Nearly 2,000 of them are thrived from the Article template. Inside of the Article items, there are two important fields: Is Featured - ...
6
votes
1answer
827 views

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

I have looked at the documentation but I can't find anything that either confirms or denies that it's possible to run an agent every 48 or 72 hours for example. From what I can see the longest ...
3
votes
1answer
114 views

Execute a site dependent sitecore task

I would like to have a sitecore task to run differently depending on the current site. My task is scheduled to run every 24h to regenerate the sitemap.xml file. Im working on a multisite environement ...
5
votes
1answer
3k views

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

I have a synchronous scheduled task that has to run everyday at 1:00 AM. But its last run time keeps increasing. How to fix this. For the "Schedule" field, the value is 20170419|20200422|127|23:59:59 ...
1
vote
1answer
417 views

Scheduler not hitting the methods

I am facing issue, scheduler is not hitting the method using the scheduler Agent. Please find below script: Config: <scheduling> <!-- default agents go here... --> <agent type=...
0
votes
1answer
492 views

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

We have two scheduled tasks and the requirement is to make them run at the same time everyday. One of them is Async (Task1) and the other Non-Async (Task2). Sitecore by default, auto updates its Last ...
3
votes
1answer
563 views

Sitecore Schedule Publish Not Working

We have the requirement like some items need to be published on specific time automatically.All Items are in two versions English and Japanese. I downloaded the sitecore schedule publish package from ...
3
votes
1answer
1k views

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

I need to kill a job that is surfacing back from a: Sitecore.Jobs.JobManager.GetJobs I can see it after I've copy/paste this resource in a "Jobs.aspx" : https://briancaos.wordpress.com/2014/11/11/...
1
vote
1answer
257 views

Task Cleanup Agent doesn't clean up everything

The task cleanup agent is running as per the schedule but it is ignoring certain files. It seems to delete files that have recently expired but it doesn't seem to remove files that are really old. ...
3
votes
2answers
620 views

Unlocking items via Sitecore PowerShell Extensions scheduled task

I'm using Sitecore Powershell Extensions to unlock items that have been locked for an extended period of time. The script is stored in the script library: $item = Get-Item -Path master:\content\ $...
3
votes
1answer
393 views

Get last time job ran date/time

I have a very basic question and only because I haven't been able to find any reference or source for it. In Sitecore, how can I programmatically get the last run date/time of a job that is ...
3
votes
1answer
781 views

Sitecore Scheduled Task not working on a CD server

I am accessing Sitecore from staging and configured a schedule task. Staging has the following databases configured: master, web --> for staging live --> db for cd1/cd2 server. The scheduled ...
4
votes
4answers
482 views

Executing Sitecore logic from a Windows Scheduled Task

One of the frequent problems that I have seen with Sitecore is the inability to control the exact time that a scheduled task should run. Since the machine's clock will be far more accurate, what I ...
5
votes
1answer
250 views

How does a Hook differ from a Scheduled Task?

In a previous question, I asked what a hook is and how it differs from a pipeline processor. Now, I'm wondering how it differs from a Scheduled Task. I know that hooks are for context-agnostic logic ...
6
votes
2answers
1k views

How to stop schedule publishing in weekends?

I am using Sitecore.NET 7.2 (rev. 140228). For my project schedule publishing is in place. In weekends I have a separate job which creates over 100k items and this job publishes all the items after ...
34
votes
6answers
5k views

What is the purpose of keepalive.aspx?

I know that this the page is called every 15 minutes (by default) by a scheduled task. <agent type="Sitecore.Tasks.UrlAgent" method="Run" interval="00:15:00"> <param desc="url">/service/...
2
votes
1answer
365 views

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

I have a scheduled task in Sitecore and I want to find the timestamp for its past executions. I can find this information in the Sitecore logs by looking to see when the info message gets written like:...
6
votes
3answers
652 views

Scheduled tasks on load balanced CM server

How can I configure scheduled tasks in Sitecore to only run on one of the machines in a load balanced content management (CM) environment? I have a task configured via a config include and am using ...
11
votes
1answer
251 views

Zipping/archiving old log files?

Some time ago I wrote a blog post about rolling the Sitecore logs: Now I'm on a project that wants to keep their logs for 3 years, but doesn't want to use disk space. I modified it from an initialize ...