Public Documentation
How to Enable and Configure the Rotation of Execution Environment Results
Step 1: Open the cron configuration file for the execution environment by running the following command in a terminal:
bash
sudo nano /etc/cron.d/tlab-exenv
Step 2: Locate the following line in the file (it may be commented out with a # symbol):
bash
#*/5 * * * * root find /var/lib/tlab/data/results/* -mmin +60 -type d -exec rm -rf {} +
Step 3: Uncomment the line by removing the # at the beginning, so it looks like this:
bash
*/5 * * * * root find /var/lib/tlab/data/results/* -mmin +60 -type d -exec rm -rf {} +
Step 4: Adjust the +60 parameter, which defines the age of the directories to be removed. The value is in minutes, and you can modify it based on your needs. For example:
+60means directories older than 60 minutes will be deleted.
Step 5: Save the changes and exit the text editor.