From 44a98e15d01cfb2d2331553dd7e42ec22de43341 Mon Sep 17 00:00:00 2001 From: Kyle MacMillan <16893311+k-macmillan@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:01:44 -0400 Subject: [PATCH] #1963 - Remove Eventlet Gunicorn Worker (#1973) --- .talismanrc | 2 +- gunicorn_config.py | 1 - poetry.lock | 42 +----------------------------------------- pyproject.toml | 2 +- 4 files changed, 3 insertions(+), 44 deletions(-) diff --git a/.talismanrc b/.talismanrc index 80a2bfa7ce..bf58ecde36 100644 --- a/.talismanrc +++ b/.talismanrc @@ -4,5 +4,5 @@ fileignoreconfig: - filename: app/notifications/process_notifications.py checksum: ae4e31c6eb56d91ec80ae09d13baf4558cf461c65f08893b93fee43f036a17a7 - filename: poetry.lock - checksum: 43b04976e62c67768ce7a00ce7355f251a688d925b77c3e8ee32f967e7a6d053 + checksum: ea749f7f430bf6095feda61a8db943cc12067b39adf510c3b684988791476a15 version: "1.0" diff --git a/gunicorn_config.py b/gunicorn_config.py index b847091cc1..8c25d763be 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -3,7 +3,6 @@ import traceback workers = 4 -worker_class = 'eventlet' worker_connections = 256 bind = '0.0.0.0:{}'.format(os.getenv('PORT')) accesslog = '-' diff --git a/poetry.lock b/poetry.lock index 1cea44ac00..f601119525 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1064,26 +1064,6 @@ files = [ {file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"}, ] -[[package]] -name = "dnspython" -version = "2.6.1" -description = "DNS toolkit" -optional = false -python-versions = ">=3.8" -files = [ - {file = "dnspython-2.6.1-py3-none-any.whl", hash = "sha256:5ef3b9680161f6fa89daf8ad451b5f1a33b18ae8a1c6778cdf4b43f08c0a6e50"}, - {file = "dnspython-2.6.1.tar.gz", hash = "sha256:e8f0f9c23a7b7cb99ded64e6c3a6f3e701d78f50c55e002b839dea7225cff7cc"}, -] - -[package.extras] -dev = ["black (>=23.1.0)", "coverage (>=7.0)", "flake8 (>=7)", "mypy (>=1.8)", "pylint (>=3)", "pytest (>=7.4)", "pytest-cov (>=4.1.0)", "sphinx (>=7.2.0)", "twine (>=4.0.0)", "wheel (>=0.42.0)"] -dnssec = ["cryptography (>=41)"] -doh = ["h2 (>=4.1.0)", "httpcore (>=1.0.0)", "httpx (>=0.26.0)"] -doq = ["aioquic (>=0.9.25)"] -idna = ["idna (>=3.6)"] -trio = ["trio (>=0.23)"] -wmi = ["wmi (>=1.5.1)"] - [[package]] name = "docopt" version = "0.6.2" @@ -1108,24 +1088,6 @@ files = [ [package.extras] mypy = ["mypy"] -[[package]] -name = "eventlet" -version = "0.36.1" -description = "Highly concurrent networking library" -optional = false -python-versions = ">=3.7" -files = [ - {file = "eventlet-0.36.1-py3-none-any.whl", hash = "sha256:e42d0f73b718e654c223a033b8692d1a94d778a6c1deb6c3d21442746f3f727f"}, - {file = "eventlet-0.36.1.tar.gz", hash = "sha256:d227fe76a63d9e6a6cef53beb8ad0b2dc40a5e7737c801f4b474cfae1db07bc5"}, -] - -[package.dependencies] -dnspython = ">=1.15.0" -greenlet = ">=1.0" - -[package.extras] -dev = ["black", "build", "commitizen", "isort", "pip-tools", "pre-commit", "twine"] - [[package]] name = "exceptiongroup" version = "1.2.2" @@ -1818,7 +1780,6 @@ files = [ ] [package.dependencies] -eventlet = {version = ">=0.24.1,<0.36.0 || >0.36.0", optional = true, markers = "extra == \"eventlet\""} packaging = "*" [package.extras] @@ -2923,7 +2884,6 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -3789,4 +3749,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = "^3.10.13" -content-hash = "8b303fbd7275836995ae1e03ebd73169cc6c4147d390bb183d581b870ac70f6a" +content-hash = "1e75ae889f9cbbcb9e3d6bb9993cf32fd42b31786aa8dee4d604ad280551e979" diff --git a/pyproject.toml b/pyproject.toml index 313ac35119..d4965bbdf1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ Flask-JWT-Extended = "*" flask-marshmallow = "*" Flask-Migrate = "*" Flask-SQLAlchemy = "*" -gunicorn = {extras = ["eventlet"], version = "*"} +gunicorn = "*" iso8601 = "*" itsdangerous = "*" jsonschema = "*"