Commit a7f84d1a authored by Kamil Trzcinski's avatar Kamil Trzcinski

Improve transition between states for event `enqueue`

parent ea4ac578
...@@ -22,7 +22,7 @@ module Ci ...@@ -22,7 +22,7 @@ module Ci
state_machine :status, initial: :created do state_machine :status, initial: :created do
event :enqueue do event :enqueue do
transition created: :pending transition created: :pending
transition any - [:created, :pending] => :running transition [:success, :failed, :canceled, :skipped] => :running
end end
event :run do event :run do
......
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