switched broker storage from rabbtimq to redis

This commit is contained in:
Anatoly 2019-10-17 13:40:52 +03:00
parent 6926fc350f
commit e2c27bd2e1
3 changed files with 15 additions and 6 deletions

View File

@ -317,7 +317,10 @@ REDOC_SETTINGS = {
}
# CELERY
BROKER_URL = 'amqp://rabbitmq:5672'
# RabbitMQ
# BROKER_URL = 'amqp://rabbitmq:5672'
# Redis
BROKER_URL = 'redis://base:6379/1'
CELERY_RESULT_BACKEND = BROKER_URL
CELERY_BROKER_URL = BROKER_URL
CELERY_ACCEPT_CONTENT = ['application/json']

View File

@ -6,7 +6,7 @@ ALLOWED_HOSTS = ['*', ]
SEND_SMS = False
SMS_CODE_SHOW = True
USE_CELERY = False
USE_CELERY = True
SCHEMA_URI = 'http'
DEFAULT_SUBDOMAIN = 'www'
@ -14,7 +14,10 @@ SITE_DOMAIN_URI = 'testserver.com:8000'
DOMAIN_URI = '0.0.0.0:8000'
# CELERY
BROKER_URL = 'amqp://rabbitmq:5672'
# RabbitMQ
# BROKER_URL = 'amqp://rabbitmq:5672'
# Redis
BROKER_URL = 'redis://redis:6379/1'
CELERY_RESULT_BACKEND = BROKER_URL
CELERY_BROKER_URL = BROKER_URL

View File

@ -15,8 +15,6 @@ djangorestframework==3.9.4
markdown
django-filter==2.1.0
djangorestframework-xml
celery
amqp>=2.4.0
geoip2==2.9.0
django-phonenumber-field[phonenumbers]==2.1.0
@ -33,4 +31,9 @@ djangorestframework-simplejwt==4.3.0
django-elasticsearch-dsl>=7.0.0,<8.0.0
django-elasticsearch-dsl-drf==0.20.2
sentry-sdk==0.11.2
sentry-sdk==0.11.2
# temp solution
redis==3.2.0
amqp>=2.4.0
celery==4.3.0rc2