Commit 3fb4d86c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add temporary fix for race condition in MWBS

parent 74fd5cab
......@@ -99,6 +99,9 @@ class CommitStatus < ActiveRecord::Base
after_transition [:created, :pending, :running] => :success do |commit_status|
commit_status.run_after_commit do
# TODO, temporary fix for race condition
UpdatePipelineWorker.new.perform(pipeline.id)
MergeRequests::MergeWhenBuildSucceedsService
.new(pipeline.project, nil).trigger(self)
end
......
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