提交 da4c54e4 编写于 作者: G Grzegorz Bizon

Run job hooks after transation commits after create

上级 0a2998b3
......@@ -47,7 +47,7 @@ module Ci
before_destroy { unscoped_project }
after_create do |build|
BuildHooksWorker.perform_async(build.id)
run_after_commit { BuildHooksWorker.perform_async(build.id) }
end
after_commit :update_project_statistics_after_save, on: [:create, :update]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册