celeryconfig.py 362 B

1234567891011121314
  1. import os
  2. import sys
  3. sys.path.insert(0, os.getcwd())
  4. ## Start worker with -P eventlet
  5. # Never use the CELERYD_POOL setting as that will patch
  6. # the worker too late.
  7. BROKER_URL = 'amqp://guest:guest@localhost:5672//'
  8. CELERY_DISABLE_RATE_LIMITS = True
  9. CELERY_RESULT_BACKEND = 'amqp'
  10. CELERY_TASK_RESULT_EXPIRES = 30 * 60
  11. CELERY_IMPORTS = ('tasks', 'webcrawler')