Created
June 9, 2016 21:13
-
-
Save mjumbewu/127368f7dc810dd37fe18aee87dd2ee2 to your computer and use it in GitHub Desktop.
Patching psycopg2 for nonblocking use with gunicorn's gevent workers using psycogreen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from psycogreen.gevent import patch_psycopg | |
def post_fork(server, worker): | |
patch_psycopg() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment