Creating jobs to accomplish long-running operations

When you need to do some long-running operations such as importing data from an external service, sending e-mails to subscribers, resetting content item layout details, and so on, we can use Sitecore jobs, which are asynchronous operations in the backend that you can monitor in a foreground thread (Job Viewer) of Sitecore Rocks or by creating a custom Sitecore application.

In this recipe, we will create a task of resetting content item layout details and execute it asynchronously by creating a Sitecore job.

Getting ready

This recipe assumes that you already have assigned layout and rendering details to templates as well as some content pages. Now, for reverting layout details changes for the content ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.