Skip to content

Instantly share code, notes, and snippets.

@vivekn
Created July 3, 2011 19:27
Show Gist options
  • Save vivekn/1062526 to your computer and use it in GitHub Desktop.
Save vivekn/1062526 to your computer and use it in GitHub Desktop.
Configuration for Celery using Redis
CELERY_RESULT_BACKEND = "redis"
REDIS_HOST = "localhost"
REDIS_PORT = 6379
REDIS_DB = 0
BROKER_BACKEND = "redis"
BROKER_HOST = "localhost" # Maps to redis host.
BROKER_PORT = 6379 # Maps to redis port.
BROKER_VHOST = "0" # Maps to database number.
CELERY_IMPORTS = ("module.submodule.foo", ) # Module which contains the tasks you want to call asynchronously
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment