Use run_after_commit to avoid race condition, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342/diffs#note_17038749
Showing
Please register or sign in to comment
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342/diffs#note_17038749