Commit da4c54e4 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Run job hooks after transation commits after create

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment