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
75c6b5e5
Commit
75c6b5e5
authored
Mar 18, 2021
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve readability in register job service
parent
38c91c0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/services/ci/register_job_service.rb
app/services/ci/register_job_service.rb
+3
-3
ee/lib/gitlab/database/load_balancing/session.rb
ee/lib/gitlab/database/load_balancing/session.rb
+0
-1
No files found.
app/services/ci/register_job_service.rb
View file @
75c6b5e5
...
...
@@ -118,11 +118,11 @@ module Ci
yield
Ci
::
Build
.
find
(
build_id
)
end
else
builds
=
retrieve_queue
(
->
{
builds
.
to_a
})
builds
_array
=
retrieve_queue
(
->
{
builds
.
to_a
})
@metrics
.
observe_queue_size
(
->
{
builds
.
size
})
@metrics
.
observe_queue_size
(
->
{
builds
_array
.
size
})
builds
.
each
(
&
blk
)
builds
_array
.
each
(
&
blk
)
end
end
# rubocop: enable CodeReuse/ActiveRecord
...
...
ee/lib/gitlab/database/load_balancing/session.rb
View file @
75c6b5e5
...
...
@@ -55,7 +55,6 @@ module Gitlab
@ignore_writes
=
false
end
def
write!
@performed_write
=
true
...
...
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