diff --git a/gunicorn.conf.py b/gunicorn.conf.py index fd924982..9e153cb2 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -15,12 +15,10 @@ from gunicorn.workers.base import Worker from gevent import monkey -from psycogreen.gevent import patch_psycopg def post_fork_patch(server, worker: Worker): monkey.patch_all() - patch_psycopg() worker.log.info("Patched 'psycopg'") diff --git a/requirements.txt b/requirements.txt index 00d6bf61..faefa5c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ django~=4.1 -psycogreen~=1.0.2 -psycopg2-binary~=2.9.3 +psycopg~=3.1 celery[redis]~=5.2 redis~=4.5 gevent~=22.10.2