Skip to content

Commit

Permalink
Make sure monkey.patch is called before anything else (web)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleesc committed Jan 16, 2020
1 parent 03f21ed commit eede515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions conf/gunicorn_web.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# NOTE: Must be before we import or call anything that may be synchronous.
from gevent import monkey

monkey.patch_all()

import sys
import os

Expand Down
5 changes: 0 additions & 5 deletions web.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# NOTE: Must be before we import or call anything that may be synchronous.
from gevent import monkey

monkey.patch_all()

from app import app as application
from endpoints.api import api_bp
from endpoints.bitbuckettrigger import bitbuckettrigger
Expand Down

0 comments on commit eede515

Please sign in to comment.