Browse Source

More Read The Docs fixes

Ask Solem 14 years ago
parent
commit
5c8ebbec96
1 changed files with 13 additions and 0 deletions
  1. 13 0
      docs/conf.py

+ 13 - 0
docs/conf.py

@@ -6,6 +6,9 @@ import os
 # eventlet/gevent should not monkey patch anything.
 os.environ["GEVENT_NOPATCH"] = "yes"
 os.environ["EVENTLET_NOPATCH"] = "yes"
+os.environ["CELERY_LOADER"] = "default"
+
+
 
 this = os.path.dirname(os.path.abspath(__file__))
 
@@ -16,6 +19,16 @@ sys.path.append(os.path.join(os.pardir, "tests"))
 sys.path.append(os.path.join(this, "_ext"))
 import celery
 
+
+# use app loader
+from celery import Celery
+app = Celery(set_as_current=True)
+app.conf.update(BROKER_BACKEND="memory",
+                   CELERY_RESULT_BACKEND="cache",
+                   CELERY_CACHE_BACKEND="memory",
+                   CELERYD_HIJACK_ROOT_LOGGER=False,
+                   CELERYD_LOG_COLOR=False)
+
 # General configuration
 # ---------------------