Table of Contents

Tasks

Rebuild indexes at fixed intervals

Tasks are activities scheduled to rebuild your indexes at set intervals. These tasks are created within a repository and are carried out by the Repository Task Handler, a standard scheduled task that runs every 5 minutes. However, this handler is also triggered by another scheduled task on the server, which means the exact timing can vary. Given this, it's essential to exercise caution when relying on it for critical processes.

To create a repository task:

  1. Go to Settings > Repositories and open a Repository
  2. Under the Tasks section, click Manage
  3. Click New task
  4. Provide a name
  5. Set a start time and optionally an end time
  6. Select the interval in which the task should be repeated
  7. In the Type section, select the Dynamicweb.Indexing.Tasks.IndexBuilderTaskProvider
  8. Click Save and close

Tasks_01

As an alternative to repository tasks, you can also create a regular scheduled task using the Build repository index add-in. This add-in allows you to select an index with 2 builds (e.g. full and partial) and execute them using the same scheduled task.

To top