Contents
Scheduled maintenance tasks
Master Feature Server can schedule and run three maintenance tasks:
- update-mailbox-counters
- delete-expired-messages
- forget-me
- reimport
All the scheduled tasks must be configured in the configuration environment. All options intended for maintenance tasks are detailed in the [ScheduledTasks] section of the Configuration Options page.
Running maintenance tasks
The following are the two methods to run scheduled tasks:
Method 1
To run the schedule task manually by calling the Feature Server resource, complete the following steps:
- Type the following address in your browser:
- http://<fs-server-host:port>/fs/api/admin/tasks/start/<task-name>
- where,
- <fs-server-host:port> is your Feature Server host.
- <task-name> is the name of your task.
- When the site requests your credentials, log in by using administrator credentials to initiate this scheduled task.
Method 2
To enable Master Feature Server to automatically start scheduled tasks, set the [Scheduled-task] <task-name>.active option to true in the master Feature Server application, then scheduled task runs automatically at the time scheduled in the [Scheduled Tasks]<task-name>.schedule option in the master Feature Server application.
For example, to enable update-mailbox-counters tasks: [ScheduleTask] update-mailbox-counters.active = true
Cancelling maintenance tasks
You can cancel a scheduled task by calling HTTP resource on master Feature Server:
- Type the following address in your browser:
- http://<fs-server-host>:port/fs/api/admin/tasks/cancel/<task-name>
- where,
- <fs-server-host:port> is your Feature Server host.
- <task-name> is the name of your task.
- When the site requests your credentials, log in by using administrator credentials to cancel schedule tasks.
Monitoring maintenance tasks
You can monitor scheduled tasks using the Feature Server HTTP resource that displays the status of scheduled tasks:
- Type the following address in your browser on the master Feature Server:
- http://<fs-server-host>:<port>/fs/api/admin/tasks/state
- where,
- <fs-server-host:port> is your Feature Server host.
- <task-name> is the name of your task.
- When the site requests your credentials, log in by using administrator credentials to display the current state of scheduled tasks, which can be one of the following:
- In progress
- Ready to start