From 99bee98ca2d9acd3e811b8b6f980f2391ce2bc5b Mon Sep 17 00:00:00 2001 From: Mads Bisgaard Date: Tue, 25 Mar 2025 15:05:36 +0100 Subject: [PATCH] fix --- .../src/simcore_service_storage/modules/celery/_common.py | 3 ++- 1 file changed, 2 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 c4f3982b49f..b479408053f 100644 --- a/services/storage/src/simcore_service_storage/modules/celery/_common.py +++ b/services/storage/src/simcore_service_storage/modules/celery/_common.py @@ -19,7 +19,8 @@ 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} + if celery_settings.CELERY_REDIS_RESULT_BACKEND.REDIS_SECURE: + 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"