Creating and managing schedules
With the Schedules tab, you can configure tasks to run automatically at specified dates and times to perform clean-ups, collect DB statistics, perform deployment activities, get the Channel configuration, etc.. You can create, modify, or delete a schedule.
The following table describes the modules that you can use when creating schedules.
Schedule | Options | Description |
---|---|---|
Archive Audit Log | Archive Language: English only | Archives a portion of the audit logs on the file system and trims the database table where those audit logs are saved. |
Deploy Package | The Package To Deploy: Name of the package | Creates an instance of the specified package and deploys it to the first environment in the specified route |
Deploy Repository | The Repository To Deploy: Name of the repository | Creates a snapshot of a repository and deploys it to the specified route |
Deploy Package Conditional | The Package To Deploy: Name of the package | Works exactly like Deploy Repository except that you can deploy only content that has changed since the last successful deployment of that repository |
Expire Package | Keep At Least: Always leave the specified number of packages. This option prevents the module from deleting the last X packages, even if they are older than the cutoff age. | Purges old packages from the database |
Garbage Collector (Perform Internal System Cleanup) | None | Performs internal system cleanup of the database. For example, when an instance is deleted, the reference counts on internal master records are set to 0 but are not physically deleted from the database. This module looks for data with 0 reference counts and performs the deletion. |
Prune Channel Rev | Older Than Days: Age in days of entries to select | Cleans old configuration revisions for channels in the database. Every time a channel configuration is changed, a snapshot is created for that channel for historical purposes. This includes configuration data for managed channels and channel properties. This module purges old channel snapshots from the database. |
Prune Instance Data | Older Than Days: Age in days of entries to select | Selects instances in the database 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 log information. This enables you to delete the binary content in instances but retain the configuration and log information for reporting. |
Prune Instance Feed | Older Than Days: Age in days of entries to select | Selects instances in the database 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. |
Prune Task Feed | Older Than Days: Age in days of entries to select | Prunes log data for deployment processes. The log information is removed, but the process run and status information is retained for reporting purposes. |
Purge System Process | Older Than Days: Age in days of entries to select | Purges the data for 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. |
Sync All Channel Templates | None | Initiates a sync operation on all channels whose template is Managed. |
Sync Channel Template | The Channel Template to Synchronize: Name of the channel template to sync. | Performs the same operation as Sync All Channel Templates but for a specific channel template. |
System Stat (Statistics) | Delete samples older than days: Age in days of entries to select for discard | 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. |
To create a schedule
- Click the Schedules tab.
- Click Add Schedule on the right, below the list of existing schedules.
- Enter a label (name) for the schedule.
- To enter time and dates for the schedule in the Cron Spec field, click the Use the Wizard icon to specify the cron format correctly.
- Select the user ID that should run the operation, which implicitly grants those user permissions to the operation.
- Select the module to run at the scheduled times.
For descriptions of the modules, see the preceding table. - Click Create.
- Confirm the schedule and complete any further configuration by clicking Configure in the associated Actions menu for that schedule.
- To start the scheduled task, click Run in the associated Actions menu for that schedule.
The Schedules list shows the new schedule with "Now" under the Next Run column.
To modify a schedule
- Click the Schedules tab.
- Make changes as necessary:
- To change the schedule name, click the name and enter a new name in the edit window that appears.
- To configure the schedule, click Configure in the Actions menu associated with the schedule that you want to 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.