Creating and managing schedules
On the Schedules tab, you can configure tasks to run automatically at the specified date and time, perform clean-ups, collect database statistics, perform deployment activities, and get the channel configuration. You can create, modify, or delete a schedule.
To add a schedule
- Click the Schedules tab.
- On the bottom right, below the list of existing schedules, click Add Schedule.
Perform the following steps to add a new schedule:- In the Label field, enter a name for the schedule.
- To enter time and dates for the schedule, in the Cron Spec field, click the
(Use the Wizard) icon.
- From the Owner list, select the ID that should run the operation, which implicitly grants the user permissions to the operation.
- From the Module list, select the module to run at the scheduled times.
The Module list shows a list of schedules available in RPD. For more information about each schedule, see Schedules in RPD
- Click Create.
- Confirm the schedule and complete any further configuration by clicking
Actions > Configure for the schedule.
- To start the scheduled task, in the corresponding
Actions menu for the schedule, click Run.
In the Schedules list, the Next Run column shows the status of the schedule as Now.
To edit a schedule
- Click the Schedules tab.
- Make changes as necessary:
- To change the schedule name, click the name, and then enter a new name in the opened edit window.
- To configure the schedule, in the Actions menu associated with the schedule that you want to configure, click Configure.
- Save your changes.
To delete a schedule
- Click the Schedules tab.
- In the Actions menu for the schedule that you want to delete, click Delete.
Schedules in RPD
The following table describes the modules that you can use when creating schedules.
Schedule | Description | Options |
---|---|---|
Archive Audit Log | Archives a portion of the audit log files on the file system and trims the database table where these audit logs are saved. |
|
Deploy Package | Creates an instance of the specified package and deploys it to the first environment in the particular route. |
|
Deploy Repository | Creates a snapshot of a repository and deploys it to the specified route. |
|
Deploy Package Conditional | Works exactly like the Deploy Package module except that you can deploy only content that has changed since the last successful deployment of that repository. |
|
Expire Package | Purges old package or repository instances from the database. Only those instances that are in an unlocked state are purged. You may first run the Unlock Old Instances schedule and then run the Expire Package schedule to delete them. |
|
Garbage Collector (Perform Internal System Cleanup) | Performs internal system cleanup of the database. For example, when an instance is deleted, the reference counts on internal master records that are set to 0 but are not physically deleted from the database. This module looks for data with 0 reference counts and removes the data. Run this module regularly during times of minimal deployment activity. | None |
Prune Channel Rev | Cleans old configuration revisions for channels in the database. Every time a channel configuration is changed, a snapshot is created for this channel for historical purposes. This includes configuration data for managed channels and channel properties. This module purges old channel snapshots from the database. Run this module, on average, once a month. If you collect significant amount of configuration data on the managed channels, and if the database size is an issue, you might need to run it more often. |
|
Prune Shared Drive | Deletes files in the remote storage that are older than the specified number of days. |
|
Prune Instance Data | Selects instances in the database that are older than the specified number of days and from a specific repository or any repository, and deletes the instance content while leaving the instance metadata and the log information. Content is deleted only for unlocked instances and instance creation date is considered. You may first run the Unlock Old Instances schedule and then run the Prune Instance Data schedule. This enables you to delete the binary content in the instances, but retain the configuration and the log information for reporting. |
|
Prune Instance Feed | Selects instances in the database that are older than the specified number of days and from a specific repository or any repository, and deletes the log data from the instance while leaving the metadata and the binary content. Content is deleted only for unlocked instances and instance creation date is considered. You may first run the Unlock Old Instances schedule and then run the Prune Instance Feed schedule. This enables you to retain the binary content and the metadata, but discard the fetch logs if they are no longer needed. |
|
Prune Task Feed | Prunes the log data for the deployment processes. The log data is removed, but the process runs and the status information is retained for the reporting purposes. Note: To run prune task feed for instances involved in any delivery that may be in a locked state, you must ensure that you unlock the instances before running the Prune Task Feed schedule. To unlock instances, run the Unlock Old Instances schedule. | Older Than Days: Selects entries that are older than the specified number of days. |
Purge System Process | Purges the data for a system and automatic processes, such as channel configuration sync processes and other system-initiated processes. The Purge System Process schedule always leaves two processes after the schedule run – one last stable configuration and one Drift configuration. | Older Than Days: Selects entries that are older than the specified number of days. |
Sync All Channel Templates | Initiates a sync operation on all channels where template is Managed. | None |
Sync Channel Template | Performs the same operation as Sync All Channel Templates, but for a specific channel template. | The Channel Template to Synchronize: Name of the channel template to synchronize. |
System Stat (Statistics) | Takes a snapshot of internal system counters and sizes in the database. This information can be used to track and trend the load and database sizes in the database. Note: Data for reports is generated by this module, so it should be run regularly to ensure accurate report data and should not be disabled or deleted. | Delete samples older than days: Selects entries for discard that are older than the specified number of days. |
Unlock Old Instances | Unlocks the package or repository instances after a certain period of time, but leaves the specified number of instances and the instances that are deployed to protected environments (if Preserve Instances From Protected Environment is set to Yes). This schedule only unlocks the instances that are delivered. Undelivered instances are not unlocked. The schedule is inactive by default. |
|