Open
Description
Description
Meilisearch Cloud is throwing random Timeout Errors, causing my record not to be indexed and the failing jobs to be discarded.
Error: MeiliSearch::TimeoutError: The request was not processed in the expected time. Net::ReadTimeout with #<TCPSocket:(closed)>
How is this case supposed to be handled with a Meilisearch Cloud installation? Adding a retry to the Job would definitely help
retry_on MeiliSearch::TimeoutError, wait: 30.seconds, attempts: :unlimited
Ideally wait time and attempts would be configurable in an initializer. Is there a way to do this without a change to the gem?
Expected behavior
Timeout Jobs should be automatically retried. Or any other solutions how to handle this?
Current behavior
What happened.
Stacktrace
"/Users/drale2k/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/meilisearch-0.26.0/lib/meilisearch/http_request.rb:113:in `rescue in send_request'",
"/Users/drale2k/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/meilisearch-0.26.0/lib/meilisearch/http_request.rb:108:in `send_request'",
"/Users/drale2k/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/meilisearch-0.26.0/lib/meilisearch/http_request.rb:26:in `http_get'",
"/Users/drale2k/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/meilisearch-0.26.0/lib/meilisearch/index.rb:286:in `settings'",
```
**Environment (please complete the following information):**
- OS: [e.g. Debian GNU/Linux]
- Meilisearch server version: Cloud v1.7.6
- meilisearch-rails version: v0.12.0
- Rails version: v7.1