Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry operation if a Mailjet::ApiError happens #126

Closed
misterwolf opened this issue Dec 15, 2017 · 1 comment
Closed

Retry operation if a Mailjet::ApiError happens #126

misterwolf opened this issue Dec 15, 2017 · 1 comment

Comments

@misterwolf
Copy link

While I was trying to retrieve a Mailjet List, the Mailjet API were down and the "Error 500" exception has been handled by the gem.
In these case I need to repeat the operation but unfortunately the method Mailjet::Connection#handle_exception blocks the execution.
Is it possibile add the "retry" facility for these cases?

Let me know,

Thanks

@mgrishko
Copy link
Collaborator

mgrishko commented Apr 6, 2023

Sorry, but this is not the optimal way to put the retry business logic in the library. The application is responsible for this retry logic. Gem should only provide a connection for a third-party service or API.

@mgrishko mgrishko closed this as completed Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants