Created
October 28, 2021 04:41
-
-
Save akhil-reni/9b8b8484a8ea0e13a635e41b2d604b99 to your computer and use it in GitHub Desktop.
Making Django ORM Gevent safe inside celery
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 gevent import monkey | |
from psycogreen.gevent import patch_psycopg | |
monkey.patch_all(httplib=False) | |
patch_psycopg() | |
import mainApp.celery | |
from mainApp.celery import app | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment