Rebuild Suggested Tests Index scheduling


Symptoms

The Rebuild Suggested Tests Index scheduled task might run more often than expected, might appear not to run, or might be disabled by the Schedule value. This affects the rebuild of sitecore_suggested_test_index and can increase resource consumption. In Sitecore XP 9.1 Update-1, the task can run every hour, and starting from Sitecore XP 10.2.0, the default interval can be every 8 hours.

WARN IndexCustodian. FullRebuild triggered on index sitecore_suggested_test_index.

Actions

The exact execution time is not fixed to midnight or to application startup. Sitecore evaluates scheduled tasks when the scheduling frequency is reached, and Sitecore.Tasks.DatabaseAgent determines whether the task is due by comparing the interval in the Schedule field with the value in Last run. After the task executes, the Last run field should be updated.

When Content Testing Suggested Tests is used, the data is retrieved from sitecore_suggested_test_index. Disabling the scheduled rebuild stops the index from getting new records. As a result, the report used for automatic suggestions is not updated, while the rest of the Content Testing functionality continues to work.

To verify that the rebuild task ran, review Sitecore logs or Application Insights for messages that contain sitecore_suggested_test_index.

  1. Search Application Insights with the following query.
    traces | where message contains "sitecore_suggested_test_index"
  2. Look for entries similar to the following in the Sitecore log and Crawling log.
    INFO Starting: Rebuild Suggested Tests Index INFO Job started: Index_Update_IndexName=sitecore_suggested_test_index WARN IndexCustodian. FullRebuild triggered on index sitecore_suggested_test_index.

Note: The value 0.00:00 disables the task. The value 1.00:00 means an interval of 1 day, not a fixed clock time.

Note: Starting from Sitecore XP 10.2.0, the default schedule can be 20140101|99990101|127|08:00:00.