Added ff and flow to skip Namespace Aggregation Lease

What does this MR do and why?

Removes dependency on Namespace::AggregationSchedule table for scheduling Namespaces::RootStatisticsWorker. Instead of creating a new AggregationSchedule Record and procuring a lease on it to avoid duplicate RootStatisticsWorker jobs, we want to check if the deduplication logic is enough to handle that.

Have added the new proposed flow behind a FF to ensure this change does not impact other Sidekiq jobs resulting in other jobs getting delayed.

ref: https://gitlab.com/gitlab-org/gitlab/-/issues/370251

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Suraj Tripathi

Merge request reports

Loading