Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c0699c17
Commit
c0699c17
authored
Jul 18, 2017
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unscoping of imposed capacity limit by find_each method on Mirror scheduler
parent
9bd93670
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/workers/update_all_mirrors_worker.rb
app/workers/update_all_mirrors_worker.rb
+1
-3
changelogs/unreleased-ee/fix-find-each-unscoping-in-mirror-scheduler.yml
...leased-ee/fix-find-each-unscoping-in-mirror-scheduler.yml
+4
-0
No files found.
app/workers/update_all_mirrors_worker.rb
View file @
c0699c17
...
...
@@ -11,9 +11,7 @@ class UpdateAllMirrorsWorker
fail_stuck_mirrors!
unless
Gitlab
::
Mirror
.
max_mirror_capacity_reached?
Project
.
mirrors_to_sync
.
find_each
(
batch_size:
200
,
&
:import_schedule
)
end
Project
.
mirrors_to_sync
.
each
(
&
:import_schedule
)
unless
Gitlab
::
Mirror
.
max_mirror_capacity_reached?
cancel_lease
(
lease_uuid
)
end
...
...
changelogs/unreleased-ee/fix-find-each-unscoping-in-mirror-scheduler.yml
0 → 100644
View file @
c0699c17
---
title
:
Fixes unscoping of imposed capacity limit by find_each method on Mirror scheduler
merge_request
:
2460
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment