Home > cloud, web > Celery configuration for Redis backend

Celery configuration for Redis backend

November 13th, 2010 alex Leave a comment Go to comments

Not too obvious since doc here doesn’t mention it. Working configuration:

  1. CARROT_BACKEND = "ghettoq.taproot.Redis"
  2. CELERY_RESULT_BACKEND = "redis"
  3. REDIS_HOST = "localhost"
  4. REDIS_PORT = 6379
  5. REDIS_DB = 0
  6. REDIS_CONNECT_RETRY = True #this one is deprecated
  7.  
  8. BROKER_HOST = "localhost"  # Maps to redis host.
  9. BROKER_PORT = 6379         # Maps to redis port.
  10. BROKER_VHOST = "0"         # Maps to database number.
  11. #this line will screw up things for ghettoq backend
  12. #CELERY_DEFAULT_EXCHANGE = "tasks"
  13. CELERY_IMPORTS = ("tasks", )

Follow this link for more details

Tags: , ,
Categories: cloud, web Tags: , ,