Browse Source

Merge pull request #500 from micha030201/fix-celery-blocking-thread

Fix celery blocking thread
Peter Justin 6 years ago
parent
commit
c5b8631bd3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      flaskbb/configs/default.py

+ 1 - 0
flaskbb/configs/default.py

@@ -265,6 +265,7 @@ class DefaultConfig(object):
     # Celery
     # Celery
     CELERY_BROKER_URL = 'redis://localhost:6379'
     CELERY_BROKER_URL = 'redis://localhost:6379'
     CELERY_RESULT_BACKEND = 'redis://localhost:6379'
     CELERY_RESULT_BACKEND = 'redis://localhost:6379'
+    BROKER_TRANSPORT_OPTIONS = {'max_retries': 1}  # necessary as there's no default
 
 
 
 
     # FlaskBB Settings
     # FlaskBB Settings