Skip to content
Snippets Groups Projects
Commit 3fb4d86c authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Add temporary fix for race condition in MWBS

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