Skip to content
Snippets Groups Projects
Commit a7f84d1a authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Improve transition between states for event `enqueue`

parent ea4ac578
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment