From f69e3a5a0079564c2704f5c262af797e94817b43 Mon Sep 17 00:00:00 2001 From: Carlo Costino Date: Tue, 29 Jul 2025 16:32:52 -0400 Subject: [PATCH] Undo recent changes related to Python upgrade This changeset undoes the recent changes we tried after the Python 3.13 update as they had no bearing on the SSL cert validation errors. Back to the drawing board! Signed-off-by: Carlo Costino --- Makefile | 2 +- gunicorn_config.py | 2 +- gunicorn_entry.py | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 86a689d1e..97cd2d682 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ watch-frontend: ## Build frontend and watch for changes .PHONY: run-flask run-flask: ## Run flask - poetry run flask run -p 6012 --host=0.0.0.0 + poetry run newrelic-admin run-program flask run -p 6012 --host=0.0.0.0 .PHONY: run-flask-bare run-flask-bare: ## Run flask without invoking poetry so we can override ENV variables in .env diff --git a/gunicorn_config.py b/gunicorn_config.py index 608369393..4971de009 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -10,7 +10,7 @@ import gunicorn # but we have an unusual configuration with a lot of cpus and not much memory # so adjust it. workers = multiprocessing.cpu_count() -worker_class = "sync" +worker_class = "gevent" bind = "0.0.0.0:{}".format(os.getenv("PORT")) disable_redirect_access_to_syslog = True gunicorn.SERVER_SOFTWARE = "None" diff --git a/gunicorn_entry.py b/gunicorn_entry.py index c2184f8b4..ab9a0d526 100644 --- a/gunicorn_entry.py +++ b/gunicorn_entry.py @@ -1,10 +1,5 @@ -# from gevent import monkey +from gevent import monkey -# monkey.patch_all() - - -import newrelic.agent # noqa - -newrelic.agent.initialize("./newrelic.ini") +monkey.patch_all() from application import application # noqa