Commit 7c7b5c26 authored by Grzegorz Bizon | at conference until 25th's avatar Grzegorz Bizon | at conference until 25th Committed by Kushal Pandya

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

Move Elasticsearch indexer into run_after_commit

Closes #2712

See merge request !2214
parent cb1af35d
Pipeline #9232854 passed with stages
in 156 minutes
......@@ -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