By default we have 14 days for failed jobs and 7 days for successful jobs.How can we modify them!!!
Thanks in advance
Regards
Komal.
@komal.v.konduru Pls provide details of your issue some video or Screenshots, and also give us what, till now you have tried to solve this issue.
I hope below thing help you
Here’s a two-pronged approach:
1. Modify Recording Settings:
- Open UiPath Orchestrator.
- Navigate to Settings > Jobs.
- Under Recording, adjust the following settings:
- Duration: This sets the length of time before failure to start recording the execution. Setting it lower will capture a smaller portion of the execution for both successful and failed jobs.
- Frequency: This defines the time interval between screenshots taken during the recording. Increasing the frequency will lead to more detailed recordings, but also consume more storage space.
2. Implement a Custom Cleanup Process:
- Create a scheduled job (either in Orchestrator or a separate process) that runs periodically (e.g., daily or weekly).
- Within the scheduled job:
- Use Orchestrator’s REST API or PowerShell cmdlets to filter jobs based on their status (Failed or Succeeded) and creation date.
- Identify jobs older than the desired retention period (e.g., anything beyond 3 days for failed jobs and 2 days for successful jobs, based on your example).
- Use the REST API or cmdlets to delete the recordings associated with those jobs.