Customizing Information Content and Access > Customizing the Schedulers
Customizing the Schedulers
The following editable schedulers are provided with ThingWorx Apps:
Scheduler
Description
PTC.Factory.StatusEvaluationScheduler
Used for calculating the status of a piece of equipment. It runs every minute.
PTC.Factory.MidnightDeviceDiscoveryScheduler
Used to automatically discover devices for each connected server. It runs daily at midnight. You can also discover devices for a server as needed from the Controls Advisor.
PTC.Factory.MidnightPurgeWeekOldHistoryScheduler
Used to purge all historical sensor data that is older than one week. It runs daily at midnight. The age of the data to be kept after each purge can be configured. If all historical data needs to be preserved, disable this scheduler.
PTC.SCA.SCO.KPIScheduler
Used for calculating KPIs. It runs every minute. For more information, see Changing the KPI Calculation Schedule.
For each scheduler, you can configure the launch schedule, as well as enable or disable the scheduler. For PTC.Factory.MidnightPurgeWeekOldHistoryScheduler, you can also set the age of data to keep after each purge.
* 
Customizations made to the schedulers are not retained during an upgrade, and will need to be re-implemented after the upgrade is complete.
Configuring the Launch Schedule for a Scheduler
To configure the launch schedule for a scheduler:
1. Edit the scheduler in ThingWorx Composer.
2. Under General Information, modify the Schedule field to set the launch schedule for a scheduler.
The Schedule property uses CRON format. For more information on CRON, see https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm.
3. Click Save to save the modified scheduler.
Enabling or Disabling a Scheduler
To enable or disable a scheduler:
1. Open the scheduler in ThingWorx Composer.
2. Click Edit and select General Information.
3. Select the Automatically Enable Timer on Startup checkbox to enable the scheduler, or clear the checkbox to disable the scheduler.
Setting the Age of Data to Keep After Each Purge
To set the age of the data to keep after each purge:
1. Edit the PTC.Factory.MidnightPurgeWeekOldHistoryScheduler in ThingWorx Composer.
2. Under Properties and Alerts, click Pencil icon to set property value next to the value for the TimeCutoff property to set the age of the data to be kept after each purge.
The required format is a combination of numbers and letters: w (weeks), d (days), h (hours), m (minutes), and s (seconds). For example, to purge all data older than 3 and a half days, enter 84h or 3d 12h.
Case, spaces, and order do not affect the value.
3. Click Checkmark button to set the property value.
4. Click Save.
Was this helpful?