Commit 8bc065e0 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Rename failure reason to stale_schedule

parent 336affe9
...@@ -50,7 +50,7 @@ class CommitStatus < ActiveRecord::Base ...@@ -50,7 +50,7 @@ class CommitStatus < ActiveRecord::Base
runner_system_failure: 4, runner_system_failure: 4,
missing_dependency_failure: 5, missing_dependency_failure: 5,
runner_unsupported: 6, runner_unsupported: 6,
schedule_expired: 7 stale_schedule: 7
} }
## ##
......
...@@ -9,7 +9,7 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated ...@@ -9,7 +9,7 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
runner_system_failure: 'There has been a runner system failure, please try again', runner_system_failure: 'There has been a runner system failure, please try again',
missing_dependency_failure: 'There has been a missing dependency failure', missing_dependency_failure: 'There has been a missing dependency failure',
runner_unsupported: 'Your runner is outdated, please upgrade your runner', runner_unsupported: 'Your runner is outdated, please upgrade your runner',
schedule_expired: 'Scheduled job could not be executed by some reason, please try again' stale_schedule: 'Delayed job could not be executed by some reason, please try again'
}.freeze }.freeze
private_constant :CALLOUT_FAILURE_MESSAGES private_constant :CALLOUT_FAILURE_MESSAGES
......
...@@ -75,7 +75,7 @@ class StuckCiJobsWorker ...@@ -75,7 +75,7 @@ class StuckCiJobsWorker
relation relation
.where('scheduled_at < ?', BUILD_SCHEDULED_OUTDATED_TIMEOUT.ago) .where('scheduled_at < ?', BUILD_SCHEDULED_OUTDATED_TIMEOUT.ago)
.find_each(batch_size: BUILD_SCHEDULED_OUTDATED_BATCH_SIZE) do |build| .find_each(batch_size: BUILD_SCHEDULED_OUTDATED_BATCH_SIZE) do |build|
drop_build(:outdated, build, :scheduled, BUILD_SCHEDULED_OUTDATED_TIMEOUT, :schedule_expired) drop_build(:outdated, build, :scheduled, BUILD_SCHEDULED_OUTDATED_TIMEOUT, :stale_schedule)
end end
end end
end end
......
...@@ -11,7 +11,7 @@ module Gitlab ...@@ -11,7 +11,7 @@ module Gitlab
runner_system_failure: 'runner system failure', runner_system_failure: 'runner system failure',
missing_dependency_failure: 'missing dependency failure', missing_dependency_failure: 'missing dependency failure',
runner_unsupported: 'unsupported runner', runner_unsupported: 'unsupported runner',
schedule_expired: 'schedule expired' stale_schedule: 'stale schedule'
}.freeze }.freeze
private_constant :REASONS private_constant :REASONS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment