Skip to content

Commit b453ddc

Browse files
🐛 Fix Celery's Redis backend SSL config (#7407)
Co-authored-by: Odei Maiz <[email protected]>
1 parent abb8f51 commit b453ddc

File tree

1 file changed

+4
-1
lines changed
  • services/storage/src/simcore_service_storage/modules/celery

1 file changed

+4
-1
lines changed

services/storage/src/simcore_service_storage/modules/celery/_common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import ssl
23

34
from celery import Celery # type: ignore[import-untyped]
45
from settings_library.celery import CelerySettings
@@ -16,12 +17,14 @@ def create_app(celery_settings: CelerySettings) -> Celery:
1617
RedisDatabase.CELERY_TASKS,
1718
),
1819
)
20+
app.conf.broker_connection_retry_on_startup = True
21+
# NOTE: disable SSL cert validation (https://github.com/ITISFoundation/osparc-simcore/pull/7407)
22+
app.conf.redis_backend_use_ssl = {"ssl_cert_reqs": ssl.CERT_NONE}
1923
app.conf.result_expires = celery_settings.CELERY_RESULT_EXPIRES
2024
app.conf.result_extended = True # original args are included in the results
2125
app.conf.result_serializer = "json"
2226
app.conf.task_send_sent_event = True
2327
app.conf.task_track_started = True
2428
app.conf.worker_send_task_events = True # enable tasks monitoring
25-
app.conf.broker_connection_retry_on_startup = True
2629

2730
return app

0 commit comments

Comments
 (0)