[MM-53466] Remove concurrency from data retention delete batching (#23927)

* Add TimeBetweenBatches config value for data retention

* adding feature flag for data retention concurrency
---------

Co-authored-by: Julien Tant <julien@craftyx.fr>
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Ben Cooke
2023-07-05 11:09:03 -04:00
коммит произвёл GitHub
родитель 15eac83923
Коммит bf0e0ed45a
3 изменённых файлов: 23 добавлений и 13 удалений

Просмотреть файл

@@ -835,6 +835,7 @@ func (ts *TelemetryService) trackConfig() {
"boards_retention_days": *cfg.DataRetentionSettings.BoardsRetentionDays,
"deletion_job_start_time": *cfg.DataRetentionSettings.DeletionJobStartTime,
"batch_size": *cfg.DataRetentionSettings.BatchSize,
"time_between_batches": *cfg.DataRetentionSettings.TimeBetweenBatchesMilliseconds,
"cleanup_jobs_threshold_days": *cfg.JobSettings.CleanupJobsThresholdDays,
"cleanup_config_threshold_days": *cfg.JobSettings.CleanupConfigThresholdDays,
})