Commit c9e4a145 authored by Valery Sizov's avatar Valery Sizov

[Elastic] Suppress ActiveRecord::RecordNotFound error in ElasticIndexWorker

parent b4eed194
...@@ -9,6 +9,7 @@ v 8.10.0 (unreleased) ...@@ -9,6 +9,7 @@ v 8.10.0 (unreleased)
- Make Elasticsearch indexer run as an async task - Make Elasticsearch indexer run as an async task
- Fix of removing wiki data from index when project is deleted - Fix of removing wiki data from index when project is deleted
- Ticket-based Kerberos authentication (SPNEGO) - Ticket-based Kerberos authentication (SPNEGO)
- [Elastic] Suppress ActiveRecord::RecordNotFound error in ElasticIndexWorker
v.8.9.7 (unreleased) v.8.9.7 (unreleased)
- Fix error in admin dashboard when Geo is enabled and current node is nil. - Fix error in admin dashboard when Geo is enabled and current node is nil.
......
...@@ -21,7 +21,7 @@ class ElasticIndexerWorker ...@@ -21,7 +21,7 @@ class ElasticIndexerWorker
clear_project_indexes(record_id) if klass == Project clear_project_indexes(record_id) if klass == Project
end end
rescue Elasticsearch::Transport::Transport::Errors::NotFound rescue Elasticsearch::Transport::Transport::Errors::NotFound, ActiveRecord::RecordNotFound
true # Less work to do! true # Less work to do!
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