cfc6e388df
The rails_failover middleware will intercept all `PG::ConnectionBad` errors and put the cluster into readonly mode. It does not have any handling for multiple databases. Therefore, an issue with the embeddings database was taking the whole cluster into readonly. This commit fixes the issue by rescuing `PG::Error` from all AI database accesses, and re-raises errors with a different class. It also adds a spec to ensure that an embeddings database outage does not affect the functionality of the topics/show route. Co-authored-by: David Taylor <david@taylorhq.com> |
||
---|---|---|
.. | ||
jobs/regular | ||
entry_point.rb | ||
model.rb | ||
semantic_related.rb | ||
semantic_search.rb | ||
topic.rb |