2020-11-30 15:48:03
Topic starter
This information is configured in InstanceConfig.xml:
<InstanceGridConfig>
<HoursToKeepSuccess>24</HoursToKeepSuccess> <!-- hours to keep succeeded grid_tasks -->
<DaysToKeepFail>14</DaysToKeepFail> <!-- days to keep failed grid_tasks -->
<DaysToKeepJob>30</DaysToKeepJob> <!-- days to keep grid_jobs -->
<AdminThreadCount>1</AdminThreadCount> <!-- number of threads to run "Grid Administrative Task" type -->
In this case, we're talking about "HoursToKeepSuccess"
Because this isn't parameterized, you have to manage this through an explicit InstanceConfig.xml on disk. See https://community.onenetwork.com/one-internal-development-qa/Question-2134/#post-4841 for information on how to do this.
Word of warning - carefully consider how many grid tasks will be kept in this case. Make sure it doesn't push your grid_tasks table into multiple millions, which may compromise performance.