Sitecore - Task Schedulers and how to schedule a task
Hey , there! Welcome to "Sitecore Series" Post is all about sharing the details about "Sitecore Schedulers and how to create and use Schedulers". There are scenarios, where we want a particular task to be executed after some time intervals like for each 15 mins or for each 3 hrs etc.., Below are some sample scenarios: 1) To create a items in CMS tree after reading it from feed. 2) To rebuild/refresh a solr index in specified intervals. 3) To send an email in specified intervals. 4) To clean up items in database. To achieve this, Sitecore provides a feature called scheduler. Where it will allow us to schedule a task to be executed in the specified intervals. Want to know about scheduler creation and how to configure it? Let's check below steps : 1) Task Creation 2) Configuring a Task in CMS 3) Scheduling a Task. 1) Creating a Task: using Sitecore.Data.Items; using Sitecore.Diagnostics; using Sitecore.Tasks; namespace Testing.Foundation.Testing.Scheduler {