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

New multiprocess manager #2183

Merged
merged 65 commits into from
May 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
bb4efdd
New multiprocess manager
abersheeran Dec 15, 2023
fde0284
lint it
abersheeran Dec 15, 2023
efd22a3
Fixed test
abersheeran Dec 15, 2023
c602782
Fixed `Process`.`__init__`
abersheeran Dec 15, 2023
c41e48d
Fix signal handling in Multiprocess class
abersheeran Dec 15, 2023
cf71b61
Update coverage fail_under value
abersheeran Dec 15, 2023
3928b3d
Remove redundant log message
abersheeran Dec 15, 2023
31c300b
Update coverage fail_under value
abersheeran Dec 15, 2023
fb13e27
Update coverage fail_under value
abersheeran Dec 15, 2023
993e695
Update fail_under value in coverage report
abersheeran Dec 15, 2023
29b3ad6
Remove unused threading event
abersheeran Dec 15, 2023
637a372
Merge branch 'master' of https://github.com/encode/uvicorn into multi…
abersheeran Mar 4, 2024
f767d9c
lint
abersheeran Mar 4, 2024
2a7e193
more tests
abersheeran Mar 5, 2024
cc7a2e1
More tests and fix bug
abersheeran Mar 5, 2024
636080a
lint
abersheeran Mar 5, 2024
939ed2b
Add pytest.mark.skipif for SIGHUP test on Windows
abersheeran Mar 5, 2024
e9760f4
delete unused code
abersheeran Mar 5, 2024
a207664
More tests
abersheeran Mar 5, 2024
b8947b0
Try fix tests in Windows
abersheeran Mar 5, 2024
8cbd3c2
make linter feels great
abersheeran Mar 5, 2024
edae1a9
delete pytest-xdist
abersheeran Mar 5, 2024
c724cfa
Try fix test in windows
abersheeran Mar 5, 2024
3511f48
Try make mypy happy
abersheeran Mar 5, 2024
298906a
Skip tests in windows
abersheeran Mar 5, 2024
f1f4d64
lint
abersheeran Mar 5, 2024
fe2fb08
Try test basic run in Windows
abersheeran Mar 5, 2024
fb46e20
Try fix error in Windows
abersheeran Mar 5, 2024
197fa3d
lint
abersheeran Mar 5, 2024
33f5692
Skip tests in window
abersheeran Mar 5, 2024
d3c4484
Try test in window
abersheeran Mar 5, 2024
d3f090a
lint
abersheeran Mar 5, 2024
4bae355
Add import statement and set current working directory in test_multip…
abersheeran Mar 5, 2024
b910b3f
lint
abersheeran Mar 5, 2024
6d2c6b6
giveup
abersheeran Mar 5, 2024
7ee21af
Refactor signal handling in Multiprocess class
abersheeran Mar 6, 2024
9397e8e
Merge branch 'master' into multiprocess-manager
abersheeran Apr 2, 2024
8efcad3
Tests in windows
abersheeran Apr 3, 2024
7c683ca
lint
abersheeran Apr 3, 2024
4e3ac6e
lint
abersheeran Apr 3, 2024
404b864
ignore mypy check in linux
abersheeran Apr 3, 2024
d3a3aab
Add __init__.py
abersheeran Apr 3, 2024
736510a
fix warning
abersheeran Apr 3, 2024
42c7187
coverage ignore
abersheeran Apr 3, 2024
6fce985
Update coverage
abersheeran Apr 4, 2024
6e916f3
coverage
abersheeran Apr 4, 2024
b8ee655
Add documents
abersheeran Apr 5, 2024
66395d0
Update docs/deployment.md
abersheeran Apr 14, 2024
a19f737
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
658a4fa
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
43e0190
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
cc25743
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
5f23d2f
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
a5d19cb
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
1b3ddc7
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
1e8db13
Update uvicorn/supervisors/multiprocess.py
abersheeran Apr 14, 2024
a4209cf
Do not output the PID information repeatedly.
abersheeran Apr 14, 2024
dbc34c8
Fix occasional abnormal exits.
abersheeran Apr 14, 2024
a9d4b63
Update docs
abersheeran May 25, 2024
b740e2d
Change subprocess termination logic in Multiprocess class
abersheeran May 25, 2024
e78ca8c
Merge branch 'master' into multiprocess-manager
abersheeran May 25, 2024
59aa0be
Update new_console_in_windows function to include pragma statement
abersheeran May 25, 2024
5281eee
Revert coverage to 98.35
abersheeran May 25, 2024
15ffc6f
chore: Remove pragma statements from test_multiprocess functions
abersheeran May 25, 2024
a1054e7
chore: Exclude test_multiprocess.py from coverage on Windows
abersheeran May 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update uvicorn/supervisors/multiprocess.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
  • Loading branch information
abersheeran and Kludex authored Apr 14, 2024
commit cc257439667e2e1c902bab23d60e2d819e284e6a
2 changes: 1 addition & 1 deletion uvicorn/supervisors/multiprocess.py
Original file line number Diff line number Diff line change
@@ -200,7 +200,7 @@ def handle_hup(self) -> None: # pragma: py-win32
self.restart_all()

def handle_ttin(self) -> None: # pragma: py-win32
logger.info("Received SIGTTIN, increasing processes")
logger.info("Received SIGTTIN, increasing the number of processes.")
self.processes_num += 1
process = Process(self.config, self.target, self.sockets)
process.start()