celeryconfig.py 316 B

12345678910111213
  1. import os
  2. import sys
  3. sys.path.insert(0, os.getcwd())
  4. # ## Note: Start worker with -P gevent,
  5. # do not use the CELERYD_POOL option.
  6. BROKER_URL = 'amqp://guest:guest@localhost:5672//'
  7. CELERY_DISABLE_RATE_LIMITS = True
  8. CELERY_RESULT_BACKEND = 'amqp'
  9. CELERY_TASK_RESULT_EXPIRES = 30 * 60
  10. CELERY_IMPORTS = ('tasks', )