Browse Source

Some outdates settings in celeryconfig of example python project

Ask Solem 14 years ago
parent
commit
523c59752b
1 changed files with 8 additions and 7 deletions
  1. 8 7
      examples/pythonproject/demoapp/celeryconfig.py

+ 8 - 7
examples/pythonproject/demoapp/celeryconfig.py

@@ -1,12 +1,13 @@
-import os
-import sys
-sys.path.insert(0, os.getcwd())
-
-DATABASE_ENGINE = "sqlite3"
-DATABASE_NAME = "celery.db"
 BROKER_HOST = "localhost"
 BROKER_USER = "guest"
 BROKER_PASSWORD = "guest"
 BROKER_VHOST = "/"
-CELERY_RESULT_BACKEND = "amqp"
+
 CELERY_IMPORTS = ("tasks", )
+
+## Using the database to store results
+# CELERY_RESULT_BACKEND = "database"
+# CELERY_RESULT_DBURI = "sqlite:///celerydb.sqlite"
+
+# Results published as messages (requires AMQP).
+CELERY_RESULT_BACKEND = "amqp"