Created
September 19, 2014 10:56
-
-
Save pyghassen/d02e384a036b1eb933be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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