From a31e9e6bcbfc3fd409b8cb8bc39e996cd6cced5f Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Fri, 21 Mar 2025 13:32:55 +0100 Subject: [PATCH 1/2] fix redis cert ssl reqs --- .../src/simcore_service_storage/modules/celery/_common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/storage/src/simcore_service_storage/modules/celery/_common.py b/services/storage/src/simcore_service_storage/modules/celery/_common.py index 8c5e215f57da..abd84b9a43c7 100644 --- a/services/storage/src/simcore_service_storage/modules/celery/_common.py +++ b/services/storage/src/simcore_service_storage/modules/celery/_common.py @@ -1,4 +1,5 @@ import logging +import ssl from celery import Celery # type: ignore[import-untyped] from settings_library.celery import CelerySettings @@ -16,12 +17,13 @@ def create_app(celery_settings: CelerySettings) -> Celery: RedisDatabase.CELERY_TASKS, ), ) + app.conf.broker_connection_retry_on_startup = True + app.conf.redis_backend_use_ssl = {"ssl_cert_reqs": ssl.CERT_NONE} app.conf.result_expires = celery_settings.CELERY_RESULT_EXPIRES app.conf.result_extended = True # original args are included in the results app.conf.result_serializer = "json" app.conf.task_send_sent_event = True app.conf.task_track_started = True app.conf.worker_send_task_events = True # enable tasks monitoring - app.conf.broker_connection_retry_on_startup = True return app From 5e992c4a93f81e1194ab7c8b090716e44a425156 Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Fri, 21 Mar 2025 14:19:37 +0100 Subject: [PATCH 2/2] add PR reference --- .../src/simcore_service_storage/modules/celery/_common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/storage/src/simcore_service_storage/modules/celery/_common.py b/services/storage/src/simcore_service_storage/modules/celery/_common.py index abd84b9a43c7..c4f3982b49f8 100644 --- a/services/storage/src/simcore_service_storage/modules/celery/_common.py +++ b/services/storage/src/simcore_service_storage/modules/celery/_common.py @@ -18,6 +18,7 @@ def create_app(celery_settings: CelerySettings) -> Celery: ), ) app.conf.broker_connection_retry_on_startup = True + # NOTE: disable SSL cert validation (https://github.com/ITISFoundation/osparc-simcore/pull/7407) app.conf.redis_backend_use_ssl = {"ssl_cert_reqs": ssl.CERT_NONE} app.conf.result_expires = celery_settings.CELERY_RESULT_EXPIRES app.conf.result_extended = True # original args are included in the results