celeryconfig.py 276 B

123456789101112
  1. import os
  2. import sys
  3. sys.path.insert(0, os.getcwd())
  4. CELERYD_POOL = 'eventlet'
  5. BROKER_URL = 'amqp://guest:guest@localhost:5672//'
  6. CELERY_DISABLE_RATE_LIMITS = True
  7. CELERY_RESULT_BACKEND = 'amqp'
  8. CELERY_TASK_RESULT_EXPIRES = 30 * 60
  9. CELERY_IMPORTS = ('tasks', 'webcrawler')