12.1+ Unix Agents are not removing .sts files after the appropriate time limit

Document ID : KB000124026
Last Modified Date : 14/02/2019
Show Technical Document Details
Issue:
When utilizing JOBF objects, .sts files are not being removed on Unix Agents after upgrading to version 12.1.2.
 
Environment:
Any 12.1.2 Environment with Unix Agents could be affected. 

Example variable configuration:

The variable UC_HOSTCHAR_DEFAULT, key FT_RESTARTINFO_LIFETIME is set to 14 (the .sts files should be removed after 14 days). Files are remaining longer than the allotted time. 
Cause:
This has been identified as incorrect behavior, and will be fixed with a future release. 
Resolution:
This issue will tentatively be fixed in the following versions:

Component: Agent Unix
Automation Engine 12.1.4HF2 - Available
Automation Engine 12.2.2HF2 - Available
Automation Engine 12.1.5 - 2019-05-30
Automation Engine 12.2.3 - 2019-06-04
Automation Engine 12.3.0 - Planned release for 2019-06-28
Additional Information:
Workaround:

Run a job against an Agent Group to manually clean these files, if enough of the Agents have the same or similar file structure for their installation path. Please find an example below:

find -name "*.sts" -type f -mtime +14 -exec rm -f {} \;

This should delete all .sts files from the temp directory older than 14 days. This  is just an example, and will need to be tailored/defined in such a way that it works for multiple Agents.