Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
f70cfba082e7
Commit
4b53363c
authored
Mar 05, 2018
by
Shinya Maeda
Browse files
Drop running_or_pending_build_count
parent
36fad0f697c0
Changes
2
Show whitespace changes
Inline
Side-by-side
app/models/ci/build.rb
View file @
f70cfba0
...
...
@@ -359,7 +359,6 @@ def execute_hooks
project
.
execute_hooks
(
build_data
.
dup
,
:job_hooks
)
project
.
execute_services
(
build_data
.
dup
,
:job_hooks
)
PagesService
.
new
(
build_data
).
execute
project
.
running_or_pending_build_count
(
force:
true
)
end
def
artifacts_metadata_entry
(
path
,
**
options
)
...
...
app/models/project.rb
View file @
f70cfba0
...
...
@@ -1494,12 +1494,6 @@ def remove_import_jid
update_column
(
:import_jid
,
nil
)
end
def
running_or_pending_build_count
(
force:
false
)
Rails
.
cache
.
fetch
([
'projects'
,
id
,
'running_or_pending_build_count'
],
force:
force
)
do
builds
.
running_or_pending
.
count
(
:all
)
end
end
# Lazy loading of the `pipeline_status` attribute
def
pipeline_status
@pipeline_status
||=
Gitlab
::
Cache
::
Ci
::
ProjectPipelineStatus
.
load_for_project
(
self
)
...
...
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