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

Timeout middleware #120

Merged
merged 5 commits into from
Sep 22, 2022
Merged

Timeout middleware #120

merged 5 commits into from
Sep 22, 2022

Conversation

mmcfarland
Copy link
Member

Description

This middleware is intended to return a controlled message and error to
the user in cases where the request exceeds a service-configurable timeout. Previously,
they might receive a QueryCancelledError, a Service Unavailable, or a
GatewayTimeout depending on which mechanism (still sometimes opaque to
us) initiated the timeout. By ensuring the setting is less than the
gateway timeout, we should collect logs in all instances and provide a
meaningful error message to the user.

Implementation was inspired by discussion on this issue.

Also filters out the health check pings from the console logs.

@mmcfarland mmcfarland requested a review from lossyrob September 21, 2022 19:13
@mmcfarland
Copy link
Member Author

cc @lossyrob for review.

Base automatically changed from feature/animation-enhance to main September 22, 2022 00:54
This middleware is intended to return a controlled message and error to
the user in cases where the request exceeds the timeout. Previously,
they might recieve a QueryCancelledError, a Service Unavailable, or a
GatewayTimeout depending on which mechanism (still sometimes opaque to
us) initiated the timeout. By ensuring the setting is less than the
gateway timeout, we should collect logs in all instances and provide a
meaningful error message to the user.  # Please enter the commit message
for your changes.
@mmcfarland mmcfarland force-pushed the feature/timeout-debugging branch from 97b2108 to 22a5d88 Compare September 22, 2022 01:00
@mmcfarland mmcfarland merged commit 6b74df3 into main Sep 22, 2022
@mmcfarland mmcfarland deleted the feature/timeout-debugging branch September 22, 2022 01:22
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

Successfully merging this pull request may close these issues.

2 participants