Fix unscoping of imposed capacity limit by find_each method on Mirror scheduler
What does this MR do?
According to the docs in find_each
https://apidock.com/rails/ActiveRecord/Batches/ClassMethods/find_each the method unscopes any LIMIT and/or any ORDER imposed on the list. So what we were doing was finding all the mirrors ready to sync and queuing them all at once. This explains the totally crazy numbers we were seeing.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together