config.py 455 B

123456789101112131415161718192021
  1. from __future__ import absolute_import, unicode_literals
  2. import atexit
  3. import os
  4. broker_url = os.environ.get('BROKER_URL') or 'amqp://'
  5. result_backend = 'amqp://'
  6. default_queue = 'testcelery'
  7. default_exchange = 'testcelery'
  8. default_routing_key = 'testcelery'
  9. queues = {'testcelery': {'routing_key': 'testcelery'}}
  10. log_color = False
  11. @atexit.register
  12. def teardown_testdb():
  13. import os
  14. if os.path.exists('test.db'):
  15. os.remove('test.db')