Commit 6340e1e4 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'sh-fix-elasticsearch-worker' into 'master'

Move Elasticsearch indexer into run_after_commit

Closes #2712

See merge request !2214
parents 7b4b22a8 5e1ab9f3
......@@ -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