diff --git a/solenoid/celery.py b/solenoid/celery.py index a653290..70499ba 100644 --- a/solenoid/celery.py +++ b/solenoid/celery.py @@ -1,13 +1,10 @@ -import os, ssl +import os from celery import Celery os.environ.setdefault("DJANGO_SETTINGS_MODULE", "solenoid.settings.base") -app = Celery( - "solenoid", - broker_use_ssl={"ssl_cert_reqs": ssl.CERT_NONE}, -) +app = Celery("solenoid") app.config_from_object("django.conf:settings", namespace="CELERY") app.autodiscover_tasks() diff --git a/solenoid/settings/base.py b/solenoid/settings/base.py index eaa1c9d..bea932b 100644 --- a/solenoid/settings/base.py +++ b/solenoid/settings/base.py @@ -284,6 +284,7 @@ # CELERY INSTALLED_APPS += ["celery_progress"] +CELERY_BROKER_USE_SSL = False CELERY_BROKER_TRANSPORT_OPTIONS = { "max_retries": 5, "interval_start": 0,