summaryrefslogtreecommitdiff
path: root/app/models/commit_status.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-09-25 15:18:02 +0900
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 17:04:04 +0200
commitc9077a0efdca065f848e3698c3afd5251a135049 (patch)
tree11a616d4415ce72fbba774f54c777c68a3da6bea /app/models/commit_status.rb
parentf76f6df19377945609c7e68103077ef04b0702fb (diff)
downloadgitlab-ce-c9077a0efdca065f848e3698c3afd5251a135049.tar.gz
Add cleanup mechanizm for stale scheduled jobs
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 03a5522b4ba..2fd3365098a 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -49,7 +49,8 @@ class CommitStatus < ActiveRecord::Base
stuck_or_timeout_failure: 3,
runner_system_failure: 4,
missing_dependency_failure: 5,
- runner_unsupported: 6
+ runner_unsupported: 6,
+ schedule_expired: 7
}
##