celeryconfig.py 337 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 worker_pool setting as that will patch
  6. # the worker too late.
  7. broker_url = 'amqp://guest:guest@localhost:5672//'
  8. worker_disable_rate_limits = True
  9. result_backend = 'amqp'
  10. result_expires = 30 * 60
  11. imports = ('tasks', 'webcrawler')