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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
9226804b
Commit
9226804b
authored
Aug 24, 2017
by
Maxim Rydkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace `is_runner_queue_value_latest?` with `runner_queue_value_latest?`
parent
edb14511
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/ci/runner.rb
app/models/ci/runner.rb
+1
-1
lib/api/runner.rb
lib/api/runner.rb
+1
-1
No files found.
app/models/ci/runner.rb
View file @
9226804b
...
@@ -142,7 +142,7 @@ module Ci
...
@@ -142,7 +142,7 @@ module Ci
expire:
RUNNER_QUEUE_EXPIRY_TIME
,
overwrite:
false
)
expire:
RUNNER_QUEUE_EXPIRY_TIME
,
overwrite:
false
)
end
end
def
is_
runner_queue_value_latest?
(
value
)
def
runner_queue_value_latest?
(
value
)
ensure_runner_queue_value
==
value
if
value
.
present?
ensure_runner_queue_value
==
value
if
value
.
present?
end
end
...
...
lib/api/runner.rb
View file @
9226804b
...
@@ -78,7 +78,7 @@ module API
...
@@ -78,7 +78,7 @@ module API
no_content!
unless
current_runner
.
active?
no_content!
unless
current_runner
.
active?
update_runner_info
update_runner_info
if
current_runner
.
is_
runner_queue_value_latest?
(
params
[
:last_update
])
if
current_runner
.
runner_queue_value_latest?
(
params
[
:last_update
])
header
'X-GitLab-Last-Update'
,
params
[
:last_update
]
header
'X-GitLab-Last-Update'
,
params
[
:last_update
]
Gitlab
::
Metrics
.
add_event
(
:build_not_found_cached
)
Gitlab
::
Metrics
.
add_event
(
:build_not_found_cached
)
return
no_content!
return
no_content!
...
...
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