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
8bc065e0
Commit
8bc065e0
authored
Oct 02, 2018
by
Shinya Maeda
Committed by
Alessio Caiazza
Oct 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename failure reason to stale_schedule
parent
336affe9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/commit_status.rb
app/models/commit_status.rb
+1
-1
app/presenters/commit_status_presenter.rb
app/presenters/commit_status_presenter.rb
+1
-1
app/workers/stuck_ci_jobs_worker.rb
app/workers/stuck_ci_jobs_worker.rb
+1
-1
lib/gitlab/ci/status/build/failed.rb
lib/gitlab/ci/status/build/failed.rb
+1
-1
No files found.
app/models/commit_status.rb
View file @
8bc065e0
...
...
@@ -50,7 +50,7 @@ class CommitStatus < ActiveRecord::Base
runner_system_failure:
4
,
missing_dependency_failure:
5
,
runner_unsupported:
6
,
s
chedule_expired
:
7
s
tale_schedule
:
7
}
##
...
...
app/presenters/commit_status_presenter.rb
View file @
8bc065e0
...
...
@@ -9,7 +9,7 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
runner_system_failure:
'There has been a runner system failure, please try again'
,
missing_dependency_failure:
'There has been a missing dependency failure'
,
runner_unsupported:
'Your runner is outdated, please upgrade your runner'
,
s
chedule_expired:
'Schedul
ed job could not be executed by some reason, please try again'
s
tale_schedule:
'Delay
ed job could not be executed by some reason, please try again'
}.
freeze
private_constant
:CALLOUT_FAILURE_MESSAGES
...
...
app/workers/stuck_ci_jobs_worker.rb
View file @
8bc065e0
...
...
@@ -75,7 +75,7 @@ class StuckCiJobsWorker
relation
.
where
(
'scheduled_at < ?'
,
BUILD_SCHEDULED_OUTDATED_TIMEOUT
.
ago
)
.
find_each
(
batch_size:
BUILD_SCHEDULED_OUTDATED_BATCH_SIZE
)
do
|
build
|
drop_build
(
:outdated
,
build
,
:scheduled
,
BUILD_SCHEDULED_OUTDATED_TIMEOUT
,
:s
chedule_expired
)
drop_build
(
:outdated
,
build
,
:scheduled
,
BUILD_SCHEDULED_OUTDATED_TIMEOUT
,
:s
tale_schedule
)
end
end
end
...
...
lib/gitlab/ci/status/build/failed.rb
View file @
8bc065e0
...
...
@@ -11,7 +11,7 @@ module Gitlab
runner_system_failure:
'runner system failure'
,
missing_dependency_failure:
'missing dependency failure'
,
runner_unsupported:
'unsupported runner'
,
s
chedule_expired:
'schedule expired
'
s
tale_schedule:
'stale schedule
'
}.
freeze
private_constant
:REASONS
...
...
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