summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-12 13:59:20 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-08-12 13:59:20 +0200
commita7f84d1a03978243c4fd5b8a878a4fea2b246f87 (patch)
treef833736f6f54ab8479c32763d8a65c02a99da18a
parentea4ac578534d3a233c3525bf8351eb2045f6e632 (diff)
downloadgitlab-ce-a7f84d1a03978243c4fd5b8a878a4fea2b246f87.tar.gz
Improve transition between states for event `enqueue`
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index d00de56bf07..8cfba92ae9b 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -22,7 +22,7 @@ module Ci
state_machine :status, initial: :created do
event :enqueue do
transition created: :pending
- transition any - [:created, :pending] => :running
+ transition [:success, :failed, :canceled, :skipped] => :running
end
event :run do