Skip to content

Commit

Permalink
Gunicorn: remove psycogreen
Browse files Browse the repository at this point in the history
  • Loading branch information
3j14 committed Apr 17, 2024
1 parent 29861ad commit 70bc8f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion gcampus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

from django.utils.version import get_version

VERSION = (0, 9, 0, "final", 1)
VERSION = (0, 9, 0, "final", 2)
__version__ = get_version(VERSION)
3 changes: 0 additions & 3 deletions gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +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'")


wsgi_app = "gcampus.wsgi"
Expand Down

0 comments on commit 70bc8f5

Please sign in to comment.