BigW Consortium Gitlab

Commit b4e75155 by Lin Jen-Shin

Use run_after_commit to avoid race condition, feedback:

parent 98217bc0
......@@ -84,9 +84,11 @@ module Ci
end
after_transition any => [:success, :failed] do |pipeline|
pipeline.run_after_commit do
SendPipelineNotificationWorker.perform_async(pipeline.id)
end
end
end
# ref can't be HEAD or SHA, can only be branch/tag name
def self.latest_successful_for(ref)
......
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