Inactive agents auto deletion¶
It is possible to run inactive agents auto deletion. This is needs to clean the database from a large number of unnecessary records. For more information about inactive agents see agent downgrade.
You can configure inactive agents auto deletion by LUNA_VIDEO_MANAGER_AGENT_CLEAR_INTERVAL setting.
interval - Integer. Agents inactive longer than interval will deleted.
interval_type - String. Type of interval (“weeks”, “days”, “hours”, “minutes”, “seconds”)
check_interval - Integer. In seconds. How often background task will check inactive agents for deletion.
active - Boolean. If set to true inactive agents auto deletion will be enabled, otherwise will not.
By default inactive agents auto deletion is active. For example default setting values run auto deletion with inactive agents in data base each 86400 seconds and delete agent which are inactive longer than 3 days.
For example if it needs to check each 5 minutes for delete agents inactive longer than 4 weeks, set values below:
{
"interval": 4,
"interval_type": "weeks",
"check_interval": 300,
"active": true
}