Notifications
Clear all

Grid tasks purge history

1 Posts
2 Users
3 Reactions
1,690 Views
1
Topic starter
How do we change the the grid tasks purge history? I would like to increase it to keep 1 week history.
1 Answer
2

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.