Skip to content

Commit

Permalink
Patch psycopg2 at gunicorn config load rather than in post_fork().
Browse files Browse the repository at this point in the history
  • Loading branch information
NickFitz committed Feb 20, 2025
1 parent 797580a commit 65d8ebf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trade_remedies_api/config/gunicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
worker_connections = os.environ.get("GUNICORN_WORKER_CONNECTIONS", "10")
workers = os.environ.get("GUNICORN_WORKERS", "1")

patch_psycopg()

# def post_fork(server, worker):
# """
Expand Down

0 comments on commit 65d8ebf

Please sign in to comment.