celeryconfig.py 254 B

123456789101112
  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 worker_pool option.
  6. broker_url = 'amqp://guest:guest@localhost:5672//'
  7. result_backend = 'amqp'
  8. result_expires = 30 * 60
  9. imports = ('tasks',)