Removing Stale Monitor History Data

Customizing Cloud Hot Folder operations may result in some processes appearing to be stuck IN_PROGRESS, even when completed. You can run a script to identify and edit these statuses, so that they can be removed.

Procedure

  1. Address the missing AOP monitoring.

    See AOP Monitoring for more information.

  2. Clear the stale data, taking care not to delete data that may indicate other issues.

    You can use the script below to search for records with the status IN_PROGRESS and older than a configurable number of days. The system will then update the parent records to the status SUCCESS or FAILURE, so that they are picked up by clean-up jobs. By default, child entries are not updated in order to preserve information about erroneous steps. Take careful note of the Properties you may want to change section of the script below, as this identifies places where you can customize behavior.

    The script can be run using the Scripting Languages option in the SAP Commerce Cloud Administration Console. Note that you need to deactivate the rollback switch in the console to ensure that results are persisted.