You learned about Sitecore jobs, which we invoked on user action. Now, you will learn how we can schedule such jobs in Sitecore. Scheduling tasks is possible in Sitecore using two different techniques: agents and database tasks.
We will take a case of a Sitecore instance using Sitecore item versioning. Now think, what will happen when your items have a number of versions? Your content owners are facing difficulty in managing them, which will make the user interface slower and impact the overall Sitecore performance as well. So, we will create a Sitecore agent that will keep a few of the latest versions and delete all the older versions of items every 12 hours so that users do not need to do it manually for each item individually.