mirror of
https://github.com/wassname/openshift-celery-cartridge.git
synced 2026-08-20 12:40:07 +08:00
Added celeryconfig template config
This commit is contained in:
@@ -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"}}
|
||||
Reference in New Issue
Block a user