Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring automatic cleanup of robotic automations, events, or operator history records

Updated on December 20, 2022

Depending on your business needs, you can configure Pega Robot Manager to automatically clean up automations, events, or operator history records.

Before you begin: Ensure that you have an unlocked ruleset to be able to save rule instances.

The pyArchiveRoboticAutomations job scheduler (agent) automatically archives History-Data-Robot-Automations (pr_data_robot_automation_audit database table) records that exceed a set limit (the default value is: 10). By default, the job scheduler runs daily at: 2:00 AM, US Eastern Time.

The pyArchiveRoboticEvents job scheduler (agent) automatically archives History-Data-Robot-Events (pr_data_robot_event_audit database table) records that exceed a set limit (the default value is: 100). By default, the job scheduler runs daily at: 2:00 AM, US Eastern Time.

The pyPurgeRobotOperatorHistory job scheduler (agent) automatically purges History-Data-Admin-Operator-ID (: pr_data_robot_automation_audit database table) records that exceed a set limit. By default, the job scheduler runs daily at 2:00 AM, US Eastern Time.

Note:
  • The default job schedulers run in the context of the system runtime level, and therefore can archive data at the entire system level, and not only at the application level.
  • Override the job schedulers in your current application only if you want to change the schedule, or to update the number of records to preserve. Otherwise, use the default job schedulers.
  • Do not change the Associated with node types value for any job scheduler.
  1. In the navigation panel of Dev Studio, click Records.
  2. Expand the SysAdmin category, and then click Job Scheduler.
  3. Click the job scheduler record that you want to edit, for example pyArchiveRoboticAutomations.
  4. Click Save as and perform the following actions:
    1. Edit the label.
    2. Set the context for your specialized notification by selecting a development branch.
      Select an application that is built on Pega Robot Manager and the Pega-Robotic-AutomationPackageManagement ruleset.
    3. Click Create and open.
  5. Configure your job scheduler:
    ChoicesActions
    Change the schedule
    1. In the Schedule list, select the frequency for the job, and then set the related details.
    2. Set the start time and the time zone.
    Change the number of preserved records
    1. Click Parameters.
    2. Enter the new maximum number of most recent items to preserve. For best results, set the maximum number of records to be preserved to a value as recommended below:
      • For the pyArchiveRoboticAutomations: between 10 and 999 records
      • For the pyArchiveRoboticEvents: between 100 and 999 records
      • For the pyPurgeRobotOperatorHistory: between 0 and 999 records
    3. Click Submit.
  6. Click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us