Commit 5e1ab9f3 authored by Stan Hu's avatar Stan Hu

Move ElasticCommitIndexWorker into run_after_commit block

Closes #2712
parent 5514552c
......@@ -47,7 +47,7 @@ module EE
end
if current_application_settings.elasticsearch_indexing?
ElasticCommitIndexerWorker.perform_async(project.id)
project.run_after_commit { ElasticCommitIndexerWorker.perform_async(project.id) }
end
end
......
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