Skip to content

Commit

Permalink
Update to Uvicorn 0.34.0
Browse files Browse the repository at this point in the history
This commit will update/upgrade Uvicorn
[from 0.28.1 to 0.34.0](encode/uvicorn@0.28.1...0.34.0).

There were some notable (but undocumented) updates to signal handling
introduced in Uvicorn 0.29. The updates may result in child processes
that do not shut down after the Uvicorn server gracefully shuts down
([encode/uvicorn#1600](encode/uvicorn#1600),
[encode/uvicorn#2281](encode/uvicorn#2281),
[encode/uvicorn#2289](encode/uvicorn#2289),
[encode/uvicorn#2317](encode/uvicorn#2317)).
For this reason, it may be helpful to check servers for orphaned child
processes. See the GitHub references above for further info.

As noted in commit 3ab51b6, Uvicorn workers were deprecated in 0.30.0.
The workers are now available at `inboard.gunicorn_workers`.

Other updates include an overhaul of the Uvicorn multiprocess manager
(`uvicorn.supervisors.process.Multiprocess`,
[encode/uvicorn#2183](encode/uvicorn#2183))
and small updates to the `forwarded_allow_ips`/`--forwarded-allow-ips`
config setting.
  • Loading branch information
br3ndonland committed Jan 4, 2025
1 parent 319c07b commit d21b25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inboard/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class UvicornOptions(TypedDict, total=False):
limit_max_requests: int | None
timeout_keep_alive: int
timeout_graceful_shutdown: int | None
ssl_keyfile: str | None
ssl_keyfile: str | PathLike[str] | None
ssl_certfile: str | PathLike[str] | None
ssl_keyfile_password: str | None
ssl_version: int
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
]
dependencies = [
"gunicorn==22.0.0",
"uvicorn==0.28.1",
"uvicorn==0.34.0",
]
description = "Docker images and utilities to power your Python APIs and help you ship faster."
dynamic = ["version"]
Expand Down Expand Up @@ -56,12 +56,12 @@ tests = [
"trustme>=1.2,<2",
]
uvicorn-fast = [
"httptools>=0.5.0",
"httptools>=0.6.3",
"uvloop>=0.14.0,!=0.15.0,!=0.15.1; sys_platform != 'win32' and (sys_platform != 'cygwin' and platform_python_implementation != 'PyPy')",
"websockets>=10.4",
]
uvicorn-standard = [
"uvicorn[standard]==0.28.1",
"uvicorn[standard]==0.34.0",
]

[project.urls]
Expand Down

0 comments on commit d21b25b

Please sign in to comment.