celeryconfig.py 395 B

12345678910111213141516
  1. from __future__ import absolute_import, unicode_literals
  2. import os
  3. import sys
  4. sys.path.insert(0, os.getcwd())
  5. # ## Start worker with -P eventlet
  6. # Never use the worker_pool setting as that will patch
  7. # the worker too late.
  8. broker_url = 'amqp://guest:guest@localhost:5672//'
  9. worker_disable_rate_limits = True
  10. result_backend = 'amqp'
  11. result_expires = 30 * 60
  12. imports = ('tasks', 'webcrawler')