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 November 29, 2022

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

Before you begin: Ensure that you have an unlocked ruleset for saving rule instances.

The pyArchiveRoboticAutomations job scheduler (agent) automatically archives History-Data-Robot-Automations (database table: pr_data_robot_automation_audit) 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 (database table: pr_data_robot_event_audit) 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 (database table: pr_data_robot_automation_audit) 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 at system runtime context level, and can thus 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 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 limit of most recent items to preserve. For best results, set number of records to preserve to a recommended value:
      • 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