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

Add Support for GraphQL Service timeout_keep_alive Configuration #290

Merged
merged 3 commits into from
Sep 20, 2021

Conversation

joe1981al
Copy link
Contributor

@joe1981al joe1981al commented Sep 19, 2021

Summary

Add support for setting keep alive timeout for graphql service. Setting is added to config.toml with default value of 5 seconds which matches uvicorns default setting.

Importance

Was having issues with 502 errors and wanted a reliable way to set the timeout for graphql's keep alive when running in AWS ECS behind an ALB.

Checklist

This PR:

  • adds new tests (if appropriate)
  • adds a change file in the changes/ directory (if appropriate)

@joe1981al joe1981al marked this pull request as ready for review September 19, 2021 18:40
@zanieb
Copy link
Contributor

zanieb commented Sep 20, 2021

This seems reasonable but we'll want to ensure it doesn't conflict with our own uses.

cc @TylerWanner @mashun4ek

Copy link
Contributor

@TylerWanner TylerWanner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reasonable to me. Thanks for the contribution!

@TylerWanner
Copy link
Contributor

there doesn't appear to be a way to set uvicorn keep-alive in env vars or anywhere implicitly, so I don't believe this change should be breaking to anybody

@zanieb zanieb merged commit f7044ca into PrefectHQ:master Sep 20, 2021
@zanieb zanieb mentioned this pull request Oct 21, 2021
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.

3 participants