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

Sailor should auto-rebound when it encounters an HTTP timeout in a component's process function #175

Open
jhorbulyk opened this issue May 10, 2021 · 0 comments

Comments

@jhorbulyk
Copy link

Feature Request

Description

As part of https://github.com/elasticio/elasticio/issues/5012 we started re-using http connections so that HTTP timeouts were avoided as a result of there being insufficient outbound IP ports. However, it is still possible in the internet for a certain amount of HTTP timeouts to occur. In principle, this could be solved by adding retry/rebound logic to the component code, however, in practice, this can become quite difficult & tedious (especially if an underlying code library is used). Ideally, Sailor could simply catch thrown exceptions which are caused by HTTP timeouts and auto emit a rebound in those cases.

Definition of Done

Whenever a component's action or trigger's .process() function throws an exception where err.message.code === 'ETIMEDOUT', then sailor should handle that message as a rebound as opposed to an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant