Added celeryconfig template config

This commit is contained in:
tresbailey
2013-08-06 23:15:32 -04:00
parent aa63311a0b
commit 6ba0d3c8b3
+11
View File
@@ -0,0 +1,11 @@
## Broker settings.
BROKER_URL = 'mongodb://%s:%d/celery_tasks' % (<%= ENV['OPENSHIFT_MONGODB_DB_HOST'] %>, <%= ENV['OPENSHIFT_MONGODB_DB_PORT'] %>)
# List of modules to import when celery starts.
CELERY_IMPORTS = ("<%= ENV['OPENSHIFT_CELERY_IMPORTS %>", )
## Using the database to store task state and results.
CELERY_RESULT_BACKEND = "mongodb"
CELERY_RESULT_DBURI = 'mongodb://%s:%d/celery_tasks' % (<%= ENV['OPENSHIFT_MONGODB_DB_HOST'] %>, <%= ENV['OPENSHIFT_MONGODB_DB_PORT'] %>)
CELERY_ANNOTATIONS = {"tasks.add": {"rate_limit": "10/s"}}