Skip to content

Commit

Permalink
Make sure monkey.patch is called before anything else (registry)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleesc committed Jan 16, 2020
1 parent 2540419 commit 35d8842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions conf/gunicorn_registry.py
@@ -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 registry.py
@@ -1,8 +1,3 @@
# NOTE: Must be before we import or call anything that may be synchronous.
from gevent import monkey

monkey.patch_all()

import endpoints.decorated # Note: We need to import this module to make sure the decorators are registered.
import features

Expand Down

0 comments on commit 35d8842

Please sign in to comment.