celeryconfig.py 387 B

123456789101112131415161718
  1. import atexit
  2. BROKER_HOST = "localhost"
  3. BROKER_PORT = 5672
  4. BROKER_USER = "guest"
  5. BROKER_PASSWORD = "guest"
  6. BROKER_VHOST = "/"
  7. CARROT_BACKEND = "memory"
  8. CELERY_RESULT_BACKEND = "database"
  9. CELERY_RESULT_DBURI = "sqlite:///test.db"
  10. CELERY_SEND_TASK_ERROR_EMAILS = False
  11. @atexit.register
  12. def teardown_testdb():
  13. import os
  14. if os.path.exists("test.db"):
  15. os.remove("test.db")