Skip to content

Commit

Permalink
[wip] disable ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
jonavellecuerdo committed Oct 17, 2024
1 parent 719f19f commit 3a668d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions solenoid/celery.py
Original file line number Diff line number Diff line change
@@ -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()

Expand Down
1 change: 1 addition & 0 deletions solenoid/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@

# CELERY
INSTALLED_APPS += ["celery_progress"]
CELERY_BROKER_USE_SSL = False
CELERY_BROKER_TRANSPORT_OPTIONS = {
"max_retries": 5,
"interval_start": 0,
Expand Down

0 comments on commit 3a668d7

Please sign in to comment.