Commit 57863874 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use internal commit status API to check if finished

parent 68774452
...@@ -80,8 +80,8 @@ class CommitStatus < ActiveRecord::Base ...@@ -80,8 +80,8 @@ class CommitStatus < ActiveRecord::Base
after_transition do |commit_status, transition| after_transition do |commit_status, transition|
if commit_status.pipeline && !transition.loopback? if commit_status.pipeline && !transition.loopback?
ProcessPipelineWorker.perform_async( ProcessPipelineWorker.perform_async(
commit_status.pipeline.id, commit_status.pipeline.id, process: commit_status.complete?
process: HasStatus::COMPLETED_STATUSES.include?(commit_status.status)) )
end end
true true
......
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