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
after_transition do |commit_status, transition|
if commit_status.pipeline && !transition.loopback?
ProcessPipelineWorker.perform_async(
commit_status.pipeline.id,
process: HasStatus::COMPLETED_STATUSES.include?(commit_status.status))
commit_status.pipeline.id, process: commit_status.complete?
)
end
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