Actually, I need to know the significance of the properties related to event queue agent configuration, below is an example of the agent configuration.
- Interval: How often we need to run the cleanup agent task, the default value is 4 hours.
- DaysToKeep: The number of days you want to keep entries in the event queue, means at any moment, we keep events that got created within the past 24 hours(here if the value is 1 day).
- IntervalToKeep: This is the property if we need to keep events in the queue for
hours/minutes/seconds, this property overrides the DaysToKeep property.
eg: If Interval is 4hours, DaysToKeep is 1 day, then the cleanup agent will run every 4 hours and it will clean all the events from the queue which are a day older, as property, DaysToKeep value is 1 which states that we have to keep all the event which are not yet 1 day older.
But when I looked into the event queue table then I found that the cleanup agent runs every 4 hours and its cleans all the records which are older than 4 hours. So my confusion is that what is the significance of property called DaysToKeep, why events got cleaned by agents which are older than 4 hours.
For reference : Link of Sitecore document about these event queue properties, https://doc.sitecore.com/developers/90/platform-administration-and-architecture/en/clean-up-the-eventqueue-and-publishqueue-tables.html