* Add functionality to cleanup old jobs Historically, we never cleaned up old jobs from the DB leading to them being accumulated forever. This PR introduces functionality to cleanup old jobs older than a defined threshold. The functionality is set to false by default and has to be enabled for it to work. ```release-note 2 new config settings were added. JobSettings.CleanupOldJobs: This indicates whether to clean up old jobs from the DB or not. Default is false. JobSettings.CleanupJobsThresholdHours: This defines the time gap in hours beyond which older jobs will be removed. This has no effect if the above config setting is set to false. Default is -1 ``` * fix copy pasta ```release-note NONE ``` * address review comments ```release-note NONE ``` * Fix lint ```release-note NONE ``` * Use single config option for everything ```release-note NONE ``` Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
304 KiB
304 KiB