Skip to content

Commit

Permalink
Merge pull request #290 from joe1981al/master
Browse files Browse the repository at this point in the history
Add Support for GraphQL Service timeout_keep_alive Configuration
  • Loading branch information
zanieb authored Sep 20, 2021
2 parents 673cbea + 8f27ba5 commit f7044ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changes/pr290.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
feature:
- "Add ability to set keep alive timeout for graphql server - [#290](https://github.com/PrefectHQ/server/pull/290)"

contributor:
- "[Joe McDonald](https://github.com/joe1981al)"
1 change: 1 addition & 0 deletions src/prefect_server/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ format = "[%(asctime)s] %(levelname)s - %(name)s | %(message)s"
debug = false
path = "/graphql/"
disable_access_logs = false
timeout_keep_alive = 5

[services.lazarus]
resurrection_attempt_limit = 3
Expand Down
1 change: 1 addition & 0 deletions src/prefect_server/services/graphql/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ def _get_uvicorn_log_level():
port=prefect_server.config.services.graphql.port,
log_level=_get_uvicorn_log_level(),
access_log=not prefect_server.configuration.config.services.graphql.disable_access_logs,
timeout_keep_alive=prefect_server.config.services.graphql.timeout_keep_alive,
)

0 comments on commit f7044ca

Please sign in to comment.