Skip to content

Instantly share code, notes, and snippets.

@pyghassen
Created September 19, 2014 10:56
Show Gist options
  • Save pyghassen/d02e384a036b1eb933be to your computer and use it in GitHub Desktop.
Save pyghassen/d02e384a036b1eb933be to your computer and use it in GitHub Desktop.
## Broker settings.
BROKER_URL = "amqp://guest:guest@localhost:5672//"
# List of modules to import when celery starts.
CELERY_IMPORTS = ("controllers", "tasks")
CELERYD_CONCURRENCY = 1
CELERY_TRACK_STARTED = True
# CELERY_DEFAULT_RATE_LIMIT = "30/m"
# CELERY_CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
# CELERY_RESULT_BACKEND = "redis://localhost/0"
## Using the database to store task state and results.
# CELERY_RESULT_BACKEND = "database"
# CELERY_RESULT_DBURI = "sqlite:///dev.db"
# mysql
# CELERY_RESULT_BACKEND = "database"
# CELERY_RESULT_DBURI = "mysql://root:root@localhost/celery"
# CELERY_RESULT_ENGINE_OPTIONS = {"echo": True}
#CELERY_ANNOTATIONS = {"tasks.add": {"rate_limit": "10/s"}}
#CELERY_RESULT_BACKEND = "mongodb"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host": "localhost",
"port": 30000,
"database": "celery",
"taskmeta_collection": "my_taskmeta_collection",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment